diff options
author | Kristóf Marussy <kristof@marussy.com> | 2022-08-21 03:19:03 +0200 |
---|---|---|
committer | Kristóf Marussy <kristof@marussy.com> | 2022-08-21 03:19:03 +0200 |
commit | 70dd02be202ae1b87ef8f7a2563ba09a3e7b0947 (patch) | |
tree | ddd34efea882a00e324000f84062c4cce28da814 /subprojects/frontend/src/index.tsx | |
parent | feat(frontend): overlay window controls (diff) | |
download | refinery-70dd02be202ae1b87ef8f7a2563ba09a3e7b0947.tar.gz refinery-70dd02be202ae1b87ef8f7a2563ba09a3e7b0947.tar.zst refinery-70dd02be202ae1b87ef8f7a2563ba09a3e7b0947.zip |
refactor(frontend): improve code splitting
Diffstat (limited to 'subprojects/frontend/src/index.tsx')
-rw-r--r-- | subprojects/frontend/src/index.tsx | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/subprojects/frontend/src/index.tsx b/subprojects/frontend/src/index.tsx index 460f6f77..3f06b332 100644 --- a/subprojects/frontend/src/index.tsx +++ b/subprojects/frontend/src/index.tsx | |||
@@ -1,3 +1,4 @@ | |||
1 | import Box from '@mui/material/Box'; | ||
1 | import CssBaseline from '@mui/material/CssBaseline'; | 2 | import CssBaseline from '@mui/material/CssBaseline'; |
2 | import { SnackbarProvider } from 'notistack'; | 3 | import { SnackbarProvider } from 'notistack'; |
3 | import React, { Suspense, lazy } from 'react'; | 4 | import React, { Suspense, lazy } from 'react'; |
@@ -71,9 +72,11 @@ const app = ( | |||
71 | <WindowControlsOverlayColor /> | 72 | <WindowControlsOverlayColor /> |
72 | <SnackbarProvider> | 73 | <SnackbarProvider> |
73 | <RegisterServiceWorker /> | 74 | <RegisterServiceWorker /> |
74 | <Suspense fallback={<Loading />}> | 75 | <Box height="100vh" overflow="auto"> |
75 | <App /> | 76 | <Suspense fallback={<Loading />}> |
76 | </Suspense> | 77 | <App /> |
78 | </Suspense> | ||
79 | </Box> | ||
77 | </SnackbarProvider> | 80 | </SnackbarProvider> |
78 | </ThemeProvider> | 81 | </ThemeProvider> |
79 | </RootStoreProvider> | 82 | </RootStoreProvider> |