diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2020-11-01 21:57:47 -0800 |
---|---|---|
committer | Anton Tananaev <anton.tananaev@gmail.com> | 2020-11-01 21:57:47 -0800 |
commit | 162000dc250b1be24fd7e6dd4e9c3883ca6581c5 (patch) | |
tree | b3c683dd896b6ee0b2695217e7251e959a5fa2a9 /modern/src/MainPage.js | |
parent | 1a06115aa27a0c1545b8eb9bfb38930fcb8b56bf (diff) | |
download | trackermap-web-162000dc250b1be24fd7e6dd4e9c3883ca6581c5.tar.gz trackermap-web-162000dc250b1be24fd7e6dd4e9c3883ca6581c5.tar.bz2 trackermap-web-162000dc250b1be24fd7e6dd4e9c3883ca6581c5.zip |
Improve session handing
Diffstat (limited to 'modern/src/MainPage.js')
-rw-r--r-- | modern/src/MainPage.js | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/modern/src/MainPage.js b/modern/src/MainPage.js index d277f28a..58bf83aa 100644 --- a/modern/src/MainPage.js +++ b/modern/src/MainPage.js @@ -1,9 +1,7 @@ import React from 'react'; -import { useSelector } from 'react-redux'; import { isWidthUp, makeStyles, withWidth } from '@material-ui/core'; import Drawer from '@material-ui/core/Drawer'; import ContainerDimensions from 'react-container-dimensions'; -import LinearProgress from '@material-ui/core/LinearProgress'; import DevicesList from './DevicesList'; import MainToolbar from './MainToolbar'; import Map from './map/Map'; @@ -42,10 +40,9 @@ const useStyles = makeStyles(theme => ({ })); const MainPage = ({ width }) => { - const initialized = useSelector(state => !!state.session.server && !!state.session.user); const classes = useStyles(); - return !initialized ? (<LinearProgress />) : ( + return ( <div className={classes.root}> <MainToolbar /> <div className={classes.content}> |