diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2020-06-06 15:43:18 -0700 |
---|---|---|
committer | Anton Tananaev <anton.tananaev@gmail.com> | 2020-06-06 15:43:18 -0700 |
commit | 4a9dcfa618e1d4d8393ac72d087bd85ebeaecdb9 (patch) | |
tree | 9baa6e10020906919d70e1ca70908189d00ff04b /modern | |
parent | f8643e6bd88c20cc13383a86f457d909cdd6ae6e (diff) | |
download | trackermap-web-4a9dcfa618e1d4d8393ac72d087bd85ebeaecdb9.tar.gz trackermap-web-4a9dcfa618e1d4d8393ac72d087bd85ebeaecdb9.tar.bz2 trackermap-web-4a9dcfa618e1d4d8393ac72d087bd85ebeaecdb9.zip |
Improve initial loading progress
Diffstat (limited to 'modern')
-rw-r--r-- | modern/src/MainPage.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/modern/src/MainPage.js b/modern/src/MainPage.js index ebc20051..99311b2b 100644 --- a/modern/src/MainPage.js +++ b/modern/src/MainPage.js @@ -5,6 +5,7 @@ import { useHistory } from 'react-router-dom'; 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 DeviceList from './DeviceList'; import MainMap from './MainMap'; @@ -58,7 +59,7 @@ const MainPage = ({ width }) => { } }, [authenticated, history]); - return !authenticated ? (<div>Loading...</div>) : ( + return !authenticated ? (<LinearProgress />) : ( <div className={classes.root}> <SocketController /> <MainToobar /> |