diff options
Diffstat (limited to 'language-web/src/main/js/index.tsx')
-rw-r--r-- | language-web/src/main/js/index.tsx | 19 |
1 files changed, 5 insertions, 14 deletions
diff --git a/language-web/src/main/js/index.tsx b/language-web/src/main/js/index.tsx index 86cb4a65..80c70f23 100644 --- a/language-web/src/main/js/index.tsx +++ b/language-web/src/main/js/index.tsx | |||
@@ -1,8 +1,6 @@ | |||
1 | import { CacheProvider } from '@emotion/react'; | ||
2 | import React from 'react'; | 1 | import React from 'react'; |
3 | import { render } from 'react-dom'; | 2 | import { render } from 'react-dom'; |
4 | import CssBaseline from '@material-ui/core/CssBaseline'; | 3 | import CssBaseline from '@mui/material/CssBaseline'; |
5 | import createCache from 'tss-react/@emotion/cache'; | ||
6 | 4 | ||
7 | import { App } from './App'; | 5 | import { App } from './App'; |
8 | import { RootStore, RootStoreProvider } from './RootStore'; | 6 | import { RootStore, RootStoreProvider } from './RootStore'; |
@@ -49,19 +47,12 @@ scope Family = 1, Person += 5..10. | |||
49 | const rootStore = new RootStore(); | 47 | const rootStore = new RootStore(); |
50 | rootStore.editorStore.updateValue(initialValue); | 48 | rootStore.editorStore.updateValue(initialValue); |
51 | 49 | ||
52 | const muiCache = createCache({ | ||
53 | key: 'mui', | ||
54 | prepend: true, | ||
55 | }); | ||
56 | |||
57 | const app = ( | 50 | const app = ( |
58 | <RootStoreProvider rootStore={rootStore}> | 51 | <RootStoreProvider rootStore={rootStore}> |
59 | <CacheProvider value={muiCache}> | 52 | <ThemeProvider> |
60 | <ThemeProvider> | 53 | <CssBaseline /> |
61 | <CssBaseline /> | 54 | <App /> |
62 | <App /> | 55 | </ThemeProvider> |
63 | </ThemeProvider> | ||
64 | </CacheProvider> | ||
65 | </RootStoreProvider> | 56 | </RootStoreProvider> |
66 | ); | 57 | ); |
67 | 58 | ||