aboutsummaryrefslogtreecommitdiff
path: root/modern/src/index.js
diff options
context:
space:
mode:
Diffstat (limited to 'modern/src/index.js')
-rw-r--r--modern/src/index.js22
1 files changed, 12 insertions, 10 deletions
diff --git a/modern/src/index.js b/modern/src/index.js
index 07ac7e3f..547e39ef 100644
--- a/modern/src/index.js
+++ b/modern/src/index.js
@@ -3,7 +3,7 @@ import React from 'react';
import ReactDOM from 'react-dom';
import { BrowserRouter } from 'react-router-dom';
import { Provider } from 'react-redux';
-import { CssBaseline, ThemeProvider } from '@material-ui/core';
+import { CssBaseline, ThemeProvider, StyledEngineProvider } from '@mui/material';
import * as serviceWorker from './serviceWorker';
import store from './store';
import { LocalizationProvider } from './common/components/LocalizationProvider';
@@ -19,15 +19,17 @@ ReactDOM.render(
(
<Provider store={store}>
<LocalizationProvider>
- <ThemeProvider theme={theme}>
- <CssBaseline />
- <BrowserRouter basename={base}>
- <SocketController />
- <CachingController />
- <Navigation />
- </BrowserRouter>
- <ErrorHandler />
- </ThemeProvider>
+ <StyledEngineProvider injectFirst>
+ <ThemeProvider theme={theme}>
+ <CssBaseline />
+ <BrowserRouter basename={base}>
+ <SocketController />
+ <CachingController />
+ <Navigation />
+ </BrowserRouter>
+ <ErrorHandler />
+ </ThemeProvider>
+ </StyledEngineProvider>
</LocalizationProvider>
</Provider>
), document.getElementById('root'),