aboutsummaryrefslogtreecommitdiffstats
path: root/language-web/src/main/js/index.tsx
diff options
context:
space:
mode:
authorLibravatar Kristóf Marussy <kristof@marussy.com>2021-10-03 01:15:19 +0200
committerLibravatar Kristóf Marussy <kristof@marussy.com>2021-10-03 01:22:42 +0200
commit2fb435bec0ba98c355e51675d1486af1cb7f8176 (patch)
treeb3300eb90e3d5ca81207e62e7cdf8e348b86b2c9 /language-web/src/main/js/index.tsx
parentchore(web): bump frontend dependencies except MUI (diff)
downloadrefinery-2fb435bec0ba98c355e51675d1486af1cb7f8176.tar.gz
refinery-2fb435bec0ba98c355e51675d1486af1cb7f8176.tar.zst
refinery-2fb435bec0ba98c355e51675d1486af1cb7f8176.zip
chore(web): bump MUI 5 to released version
Diffstat (limited to 'language-web/src/main/js/index.tsx')
-rw-r--r--language-web/src/main/js/index.tsx19
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 @@
1import { CacheProvider } from '@emotion/react';
2import React from 'react'; 1import React from 'react';
3import { render } from 'react-dom'; 2import { render } from 'react-dom';
4import CssBaseline from '@material-ui/core/CssBaseline'; 3import CssBaseline from '@mui/material/CssBaseline';
5import createCache from 'tss-react/@emotion/cache';
6 4
7import { App } from './App'; 5import { App } from './App';
8import { RootStore, RootStoreProvider } from './RootStore'; 6import { RootStore, RootStoreProvider } from './RootStore';
@@ -49,19 +47,12 @@ scope Family = 1, Person += 5..10.
49const rootStore = new RootStore(); 47const rootStore = new RootStore();
50rootStore.editorStore.updateValue(initialValue); 48rootStore.editorStore.updateValue(initialValue);
51 49
52const muiCache = createCache({
53 key: 'mui',
54 prepend: true,
55});
56
57const app = ( 50const 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