Skip to content

Commit 5c305d0

Browse files
committed
refactor: [M3-9265] - Migrate Drawer to ui package
1 parent 4590d7c commit 5c305d0

File tree

85 files changed

+159
-161
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

85 files changed

+159
-161
lines changed

packages/manager/src/components/TagCell/TagDrawer.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
1+
import { Drawer } from '@linode/ui';
12
import * as React from 'react';
23

3-
import { Drawer } from 'src/components/Drawer';
4-
54
import { TagCell } from './TagCell';
65

76
export interface TagDrawerProps {

packages/manager/src/features/Account/SwitchAccountDrawer.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
1-
import { Notice, StyledLinkButton, Typography } from '@linode/ui';
1+
import { Drawer, Notice, StyledLinkButton, Typography } from '@linode/ui';
22
import React from 'react';
33

44
import { DebouncedSearchTextField } from 'src/components/DebouncedSearchTextField';
5-
import { Drawer } from 'src/components/Drawer';
65
import { PARENT_USER_SESSION_EXPIRED } from 'src/features/Account/constants';
76
import { useParentChildAuthentication } from 'src/features/Account/SwitchAccounts/useParentChildAuthentication';
87
import { setTokenInLocalStorage } from 'src/features/Account/SwitchAccounts/utils';

packages/manager/src/features/Backups/BackupDrawer.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,10 @@
1-
import { Box, Notice, Stack, Typography } from '@linode/ui';
1+
import { Box, Drawer, Notice, Stack, Typography } from '@linode/ui';
22
import { styled } from '@mui/material';
33
import { useSnackbar } from 'notistack';
44
import * as React from 'react';
55

66
import { ActionsPanel } from 'src/components/ActionsPanel/ActionsPanel';
77
import { DisplayPrice } from 'src/components/DisplayPrice';
8-
import { Drawer } from 'src/components/Drawer';
98
import { Link } from 'src/components/Link';
109
import { Table } from 'src/components/Table';
1110
import { TableBody } from 'src/components/TableBody';

packages/manager/src/features/Billing/BillingPanels/BillingSummary/PaymentDrawer/PaymentDrawer.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ import { Typography } from '@linode/ui';
33
import {
44
Button,
55
Divider,
6+
Drawer,
67
ErrorState,
78
InputAdornment,
89
Notice,
@@ -17,7 +18,6 @@ import * as React from 'react';
1718
import { makeStyles } from 'tss-react/mui';
1819

1920
import { Currency } from 'src/components/Currency';
20-
import { Drawer } from 'src/components/Drawer';
2121
import { LinearProgress } from 'src/components/LinearProgress';
2222
import { SupportLink } from 'src/components/SupportLink';
2323
import { getRestrictedResourceText } from 'src/features/Account/utils';

packages/manager/src/features/Billing/BillingPanels/ContactInfoPanel/EditBillingContactDrawer.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
1+
import { Drawer } from '@linode/ui';
12
import * as React from 'react';
23
import { makeStyles } from 'tss-react/mui';
34

4-
import { Drawer } from 'src/components/Drawer';
5-
65
import UpdateContactInformationForm from './UpdateContactInformationForm';
76

87
const useStyles = makeStyles()(() => ({

packages/manager/src/features/Billing/BillingPanels/PaymentInfoPanel/AddPaymentMethodDrawer/AddPaymentMethodDrawer.tsx

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,14 @@
1-
import { Box, Divider, Notice, TooltipIcon, Typography } from '@linode/ui';
1+
import {
2+
Box,
3+
Divider,
4+
Drawer,
5+
Notice,
6+
TooltipIcon,
7+
Typography,
8+
} from '@linode/ui';
29
import Grid from '@mui/material/Grid2';
310
import * as React from 'react';
411

5-
import { Drawer } from 'src/components/Drawer';
612
import { LinearProgress } from 'src/components/LinearProgress';
713
import { MAXIMUM_PAYMENT_METHODS } from 'src/constants';
814
import { getRestrictedResourceText } from 'src/features/Account/utils';
@@ -136,7 +142,6 @@ export const AddPaymentMethodDrawer = (props: Props) => {
136142
</Grid>
137143
{!isReadOnly && (
138144
<Grid
139-
container
140145
size={{
141146
md: 3,
142147
xs: 4,
@@ -145,6 +150,7 @@ export const AddPaymentMethodDrawer = (props: Props) => {
145150
alignContent: 'center',
146151
justifyContent: 'flex-end',
147152
}}
153+
container
148154
>
149155
<GooglePayChip
150156
disabled={disabled}
@@ -173,7 +179,6 @@ export const AddPaymentMethodDrawer = (props: Props) => {
173179
</Grid>
174180
{!isReadOnly && (
175181
<Grid
176-
container
177182
size={{
178183
md: 3,
179184
xs: 4,
@@ -182,6 +187,7 @@ export const AddPaymentMethodDrawer = (props: Props) => {
182187
alignContent: 'center',
183188
justifyContent: 'flex-end',
184189
}}
190+
container
185191
>
186192
<PayPalErrorBoundary renderError={renderError}>
187193
<PayPalChip

packages/manager/src/features/CloudPulse/Alerts/CreateAlert/NotificationChannels/AddNotificationChannelDrawer.tsx

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,10 @@
11
import { yupResolver } from '@hookform/resolvers/yup';
2-
import { Autocomplete, Box, Typography } from '@linode/ui';
2+
import { Autocomplete, Box, Drawer, Typography } from '@linode/ui';
33
import Grid from '@mui/material/Grid';
44
import React from 'react';
55
import { Controller, FormProvider, useForm, useWatch } from 'react-hook-form';
66

77
import { ActionsPanel } from 'src/components/ActionsPanel/ActionsPanel';
8-
import { Drawer } from 'src/components/Drawer';
98

109
import { channelTypeOptions } from '../../constants';
1110
import { getAlertBoxStyles } from '../../Utils/utils';
@@ -190,13 +189,13 @@ export const AddNotificationChannelDrawer = (
190189
<Typography variant="h3">To:</Typography>
191190
</Grid>
192191
<Grid
193-
item
194-
md="auto"
195-
xs={12}
196192
sx={{
197193
overflow: 'auto',
198194
paddingRight: 1,
199195
}}
196+
item
197+
md="auto"
198+
xs={12}
200199
>
201200
<RenderChannelDetails template={selectedTemplate} />
202201
</Grid>

packages/manager/src/features/Databases/DatabaseDetail/AddAccessControlDrawer.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,9 @@
1-
import { Notice, Typography } from '@linode/ui';
1+
import { Drawer, Notice, Typography } from '@linode/ui';
22
import { useFormik } from 'formik';
33
import * as React from 'react';
44
import { makeStyles } from 'tss-react/mui';
55

66
import { ActionsPanel } from 'src/components/ActionsPanel/ActionsPanel';
7-
import { Drawer } from 'src/components/Drawer';
87
import { Link } from 'src/components/Link';
98
import { MultipleIPInput } from 'src/components/MultipleIPInput/MultipleIPInput';
109
import {

packages/manager/src/features/Databases/DatabaseDetail/DatabaseAdvancedConfiguration/DatabaseAdvancedConfigurationDrawer.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
1-
import { Divider, Notice, Typography } from '@linode/ui';
1+
import { Divider, Drawer, Notice, Typography } from '@linode/ui';
22
import React, { useState } from 'react';
33

44
import { ActionsPanel } from 'src/components/ActionsPanel/ActionsPanel';
5-
import { Drawer } from 'src/components/Drawer';
65
import { Link } from 'src/components/Link';
76

87
import { DatabaseConfigurationSelect } from './DatabaseConfigurationSelect';

packages/manager/src/features/Domains/CloneDomainDrawer.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import {
2+
Drawer,
23
FormControlLabel,
34
Notice,
45
Radio,
@@ -10,7 +11,6 @@ import { useFormik } from 'formik';
1011
import React from 'react';
1112

1213
import { ActionsPanel } from 'src/components/ActionsPanel/ActionsPanel';
13-
import { Drawer } from 'src/components/Drawer';
1414
import { useCloneDomainMutation } from 'src/queries/domains';
1515
import { useGrants, useProfile } from 'src/queries/profile/profile';
1616

0 commit comments

Comments
 (0)