aboutsummaryrefslogtreecommitdiff
path: root/modern/src/App.js
diff options
context:
space:
mode:
Diffstat (limited to 'modern/src/App.js')
-rw-r--r--modern/src/App.js21
1 files changed, 11 insertions, 10 deletions
diff --git a/modern/src/App.js b/modern/src/App.js
index aac6979e..74a9acc0 100644
--- a/modern/src/App.js
+++ b/modern/src/App.js
@@ -25,20 +25,21 @@ const App = () => {
const initialized = useSelector((state) => !!state.session.user);
- if (!initialized) {
- return (<LinearProgress />);
- }
return (
<>
<SocketController />
<CachingController />
- <div className={classes.page}>
- <Outlet />
- </div>
- {!desktop && (
- <div className={classes.menu}>
- <BottomMenu />
- </div>
+ {!initialized ? (<LinearProgress />) : (
+ <>
+ <div className={classes.page}>
+ <Outlet />
+ </div>
+ {!desktop && (
+ <div className={classes.menu}>
+ <BottomMenu />
+ </div>
+ )}
+ </>
)}
</>
);