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