Skip to content

Commit

Permalink
Remove deprecated @mui/styles package
Browse files Browse the repository at this point in the history
  • Loading branch information
cbeer committed Dec 14, 2023
1 parent 10863f2 commit d0577aa
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 10 deletions.
1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,6 @@
"@mui/icons-material": "^5.11.16",
"@mui/lab": "^5.0.0-alpha.134",
"@mui/material": "^5.13.5",
"@mui/styles": "^5.13.2",
"@mui/utils": "^5.13.1",
"@mui/x-tree-view": "^6.17.0",
"@react-aria/live-announcer": "^3.1.2",
Expand Down
12 changes: 3 additions & 9 deletions src/components/AppProviders.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,6 @@ import { I18nextProvider } from 'react-i18next';
import {
ThemeProvider, StyledEngineProvider, createTheme,
} from '@mui/material/styles';
import StylesProvider from '@mui/styles/StylesProvider';
import createGenerateClassName from '@mui/styles/createGenerateClassName';
import { DndContext, DndProvider } from 'react-dnd';
import { MultiBackend } from 'react-dnd-multi-backend';
import { HTML5toTouch } from 'rdndmb-html5-to-touch';
Expand Down Expand Up @@ -101,8 +99,6 @@ export class AppProviders extends Component {
dndManager,
} = this.props;

const generateClassName = createGenerateClassName(createGenerateClassNameOptions);

/**
* Create rtl emotion cache
*/
Expand All @@ -128,11 +124,9 @@ export class AppProviders extends Component {
<StyledEngineProvider injectFirst>
<CacheProvider value={theme.direction === 'rtl' ? cacheRtl : cacheDefault}>
<ThemeProvider theme={createTheme((theme))}>
<StylesProvider generateClassName={generateClassName}>
<MaybeDndProvider dndManager={dndManager}>
{children}
</MaybeDndProvider>
</StylesProvider>
<MaybeDndProvider dndManager={dndManager}>
{children}
</MaybeDndProvider>
</ThemeProvider>
</CacheProvider>
</StyledEngineProvider>
Expand Down

0 comments on commit d0577aa

Please sign in to comment.