Skip to content

Commit d3e2c8b

Browse files
committed
Migrate to Material UI v7
1 parent 79ae69c commit d3e2c8b

File tree

21 files changed

+37
-37
lines changed

21 files changed

+37
-37
lines changed

ui/src/app/layout.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import type { FunctionComponent, ReactNode } from 'react'
22
import type { Metadata } from 'next'
3-
import Grid from '@mui/material/Grid2'
3+
import Grid from '@mui/material/Grid'
44

55
import Header from '@/components/Header'
66
import ApolloWrapper from '@/components/ApolloWrapper'

ui/src/components/AutocompleteContainerBody/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import CircularProgress from '@mui/material/CircularProgress'
1010
import type { SvgIconProps } from '@mui/material/SvgIcon'
1111
import type { TextFieldVariants } from '@mui/material/TextField'
1212
import TextField from '@mui/material/TextField'
13-
import debounce from '@mui/material/utils/debounce'
13+
import { debounce } from '@mui/material/utils'
1414

1515
import { ObjectKind } from '@/graphql/types.generated'
1616
import { useObjects, useObjectsSkip } from '@/hooks'

ui/src/components/AutocompleteMetadataBody/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ import type { SvgIconProps } from '@mui/material/SvgIcon'
1212
import type { TextFieldVariants } from '@mui/material/TextField'
1313
import TextField from '@mui/material/TextField'
1414
import ArrowOutwardIcon from '@mui/icons-material/ArrowOutward'
15-
import debounce from '@mui/material/utils/debounce'
15+
import { debounce } from '@mui/material/utils'
1616

1717
import TagSelectDialog from '@/components/TagSelectDialog'
1818
import { useMetadataLike, useMetadataLikeSkip, useAllTagTypes } from '@/hooks'

ui/src/components/AutocompleteSourceBody/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import CircularProgress from '@mui/material/CircularProgress'
99
import type { SvgIconProps } from '@mui/material/SvgIcon'
1010
import type { TextFieldVariants } from '@mui/material/TextField'
1111
import TextField from '@mui/material/TextField'
12-
import debounce from '@mui/material/utils/debounce'
12+
import { debounce } from '@mui/material/utils'
1313

1414
import type { ExternalMetadataInput } from '@/graphql/types.generated'
1515
import { useSource, useSourceSkip } from '@/hooks'

ui/src/components/AutocompleteTagBody/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ import type { TextFieldVariants } from '@mui/material/TextField'
1313
import TextField from '@mui/material/TextField'
1414
import Tooltip from '@mui/material/Tooltip'
1515
import ArrowOutwardIcon from '@mui/icons-material/ArrowOutward'
16-
import debounce from '@mui/material/utils/debounce'
16+
import { debounce } from '@mui/material/utils'
1717

1818
import TagSelectDialog from '@/components/TagSelectDialog'
1919
import { useTagsLike, useTagsLikeSkip } from '@/hooks'

ui/src/components/Content/index.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import type { FunctionComponent, ReactNode } from 'react'
2-
import type { Grid2Props } from '@mui/material/Grid2'
3-
import Grid from '@mui/material/Grid2'
2+
import type { GridProps } from '@mui/material/Grid'
3+
import Grid from '@mui/material/Grid'
44
import Toolbar from '@mui/material/Toolbar'
55

66
import styles from './styles.module.scss'
@@ -17,7 +17,7 @@ const Content: FunctionComponent<ContentProps> = ({
1717
</Grid>
1818
)
1919

20-
export interface ContentProps extends Grid2Props {
20+
export interface ContentProps extends GridProps {
2121
children: ReactNode
2222
}
2323

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
.content {
2-
&:global(.MuiGrid2-root) {
2+
&:global(.MuiGrid-root) {
33
height: 100%;
44
}
55
}

ui/src/components/ExternalServiceListColumn/index.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
import type { FunctionComponent, ReactNode } from 'react'
44
import { Suspense } from 'react'
55
import { ErrorBoundary } from 'react-error-boundary'
6-
import type { Grid2Props } from '@mui/material/Grid2'
7-
import Grid from '@mui/material/Grid2'
6+
import type { GridProps } from '@mui/material/Grid'
7+
import Grid from '@mui/material/Grid'
88

99
import ExternalServiceListColumnError from '@/components/ExternalServiceListColumnError'
1010
import ExternalServiceListColumnLoading from '@/components/ExternalServiceListColumnLoading'
@@ -23,7 +23,7 @@ const ExternalServiceListColumn: FunctionComponent<ExternalServiceListColumnProp
2323
</Grid>
2424
)
2525

26-
export interface ExternalServiceListColumnProps extends Grid2Props {
26+
export interface ExternalServiceListColumnProps extends GridProps {
2727
className?: string
2828
children?: ReactNode
2929
}

ui/src/components/ExternalServiceListView/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import type { FunctionComponent } from 'react'
44
import { useCallback, useState } from 'react'
55
import clsx from 'clsx'
66
import Card from '@mui/material/Card'
7-
import Grid from '@mui/material/Grid2'
7+
import Grid from '@mui/material/Grid'
88

99
import type { ExternalServiceColumn } from '@/components/ExternalServiceListColumn'
1010
import ExternalServiceDeleteDialog from '@/components/ExternalServiceDeleteDialog'

ui/src/components/ExternalServiceListView/styles.module.scss

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,23 +8,23 @@
88
}
99

1010
.wrapper {
11-
&:global(.MuiGrid2-root) {
11+
&:global(.MuiGrid-root) {
1212
flex-wrap: nowrap;
1313
height: inherit;
1414
overflow: hidden visible;
1515
}
1616
}
1717

1818
.column {
19-
&:global(.MuiGrid2-root) {
19+
&:global(.MuiGrid-root) {
2020
position: relative;
2121
flex-shrink: 0;
2222
height: inherit;
2323
}
2424
}
2525

2626
.listColumn {
27-
&:global(.MuiGrid2-root) {
27+
&:global(.MuiGrid-root) {
2828
border-right: 1px solid rgba(0, 0, 0, 0.12);
2929
}
3030
}

0 commit comments

Comments
 (0)