aboutsummaryrefslogtreecommitdiffstats
path: root/subprojects/frontend/src/App.tsx
diff options
context:
space:
mode:
authorLibravatar Kristóf Marussy <kristof@marussy.com>2022-09-06 22:32:04 +0200
committerLibravatar Kristóf Marussy <kristof@marussy.com>2022-09-08 01:24:50 +0200
commit5f8f4e6484faff23821ca7c009e309382fba914d (patch)
tree6d399fb90b4aa3527c30c502ba474cd83b5c94b2 /subprojects/frontend/src/App.tsx
parentfeat(frontend): handle page hide events (diff)
downloadrefinery-5f8f4e6484faff23821ca7c009e309382fba914d.tar.gz
refinery-5f8f4e6484faff23821ca7c009e309382fba914d.tar.zst
refinery-5f8f4e6484faff23821ca7c009e309382fba914d.zip
feat(frontend): check for updates periodically
Diffstat (limited to 'subprojects/frontend/src/App.tsx')
-rw-r--r--subprojects/frontend/src/App.tsx15
1 files changed, 11 insertions, 4 deletions
diff --git a/subprojects/frontend/src/App.tsx b/subprojects/frontend/src/App.tsx
index 3a25f43a..90514044 100644
--- a/subprojects/frontend/src/App.tsx
+++ b/subprojects/frontend/src/App.tsx
@@ -1,14 +1,21 @@
1import Grow from '@mui/material/Grow';
1import Stack from '@mui/material/Stack'; 2import Stack from '@mui/material/Stack';
3import { SnackbarProvider } from 'notistack';
2import React from 'react'; 4import React from 'react';
3 5
4import TopBar from './TopBar'; 6import TopBar from './TopBar';
7import UpdateNotification from './UpdateNotification';
5import EditorPane from './editor/EditorPane'; 8import EditorPane from './editor/EditorPane';
6 9
7export default function App(): JSX.Element { 10export default function App(): JSX.Element {
8 return ( 11 return (
9 <Stack direction="column" height="100vh" overflow="auto"> 12 // @ts-expect-error -- notistack has problems with `exactOptionalPropertyTypes
10 <TopBar /> 13 <SnackbarProvider TransitionComponent={Grow}>
11 <EditorPane /> 14 <UpdateNotification />
12 </Stack> 15 <Stack direction="column" height="100vh" overflow="auto">
16 <TopBar />
17 <EditorPane />
18 </Stack>
19 </SnackbarProvider>
13 ); 20 );
14} 21}