Skip to content

Commit

Permalink
Merge pull request #616 from zilliztech/attu-614
Browse files Browse the repository at this point in the history
feat: upgrade UI component to MUI v5
  • Loading branch information
shanghaikid authored Aug 15, 2024
2 parents 7f66f0d + d0eb5c1 commit 1652a9d
Show file tree
Hide file tree
Showing 154 changed files with 1,497 additions and 2,770 deletions.
11 changes: 7 additions & 4 deletions client/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,14 @@
"@codemirror/state": "^6.4.1",
"@codemirror/view": "^6.28.6",
"@date-io/dayjs": "1.x",
"@emotion/react": "^11.13.0",
"@emotion/styled": "^11.13.0",
"@json2csv/plainjs": "^7.0.3",
"@material-ui/core": "4.12.4",
"@material-ui/icons": "^4.11.3",
"@material-ui/lab": "4.0.0-alpha.61",
"@material-ui/pickers": "^3.3.10",
"@mui/icons-material": "^5.16.7",
"@mui/lab": "^5.0.0-alpha.173",
"@mui/material": "^5.16.7",
"@mui/styles": "^5.16.7",
"@mui/x-tree-view": "^7.12.1",
"axios": "^1.7.2",
"codemirror": "^6.0.1",
"d3": "^7.8.5",
Expand Down
36 changes: 19 additions & 17 deletions client/src/App.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import { MuiPickersUtilsProvider } from '@material-ui/pickers';
import DayjsUtils from '@date-io/dayjs';
import { ThemeProvider, StyledEngineProvider } from '@mui/material';
import Router from './router/Router';
import {
RootProvider,
Expand All @@ -9,24 +8,27 @@ import {
PrometheusProvider,
SystemProvider,
} from './context';
import { theme } from './styles/theme';

function App() {
return (
<AuthProvider>
<DataProvider>
<RootProvider>
<SystemProvider>
<PrometheusProvider>
<NavProvider>
<MuiPickersUtilsProvider utils={DayjsUtils}>
<Router></Router>
</MuiPickersUtilsProvider>
</NavProvider>
</PrometheusProvider>
</SystemProvider>
</RootProvider>
</DataProvider>
</AuthProvider>
<StyledEngineProvider injectFirst>
<ThemeProvider theme={theme}>
<AuthProvider>
<DataProvider>
<RootProvider>
<SystemProvider>
<PrometheusProvider>
<NavProvider>
<Router></Router>
</NavProvider>
</PrometheusProvider>
</SystemProvider>
</RootProvider>
</DataProvider>
</AuthProvider>
</ThemeProvider>
</StyledEngineProvider>
);
}

Expand Down
17 changes: 0 additions & 17 deletions client/src/components/__test__/cards/EmptyCard.spec.tsx

This file was deleted.

11 changes: 0 additions & 11 deletions client/src/components/__test__/customButton/CustomButton.spec.tsx

This file was deleted.

This file was deleted.

93 changes: 0 additions & 93 deletions client/src/components/__test__/customDialog/CustomDialog.spec.tsx

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

Loading

0 comments on commit 1652a9d

Please sign in to comment.