aboutsummaryrefslogtreecommitdiff
path: root/modern/src/MainPage.js
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2020-06-06 15:43:18 -0700
committerAnton Tananaev <anton.tananaev@gmail.com>2020-06-06 15:43:18 -0700
commit4a9dcfa618e1d4d8393ac72d087bd85ebeaecdb9 (patch)
tree9baa6e10020906919d70e1ca70908189d00ff04b /modern/src/MainPage.js
parentf8643e6bd88c20cc13383a86f457d909cdd6ae6e (diff)
downloadtrackermap-web-4a9dcfa618e1d4d8393ac72d087bd85ebeaecdb9.tar.gz
trackermap-web-4a9dcfa618e1d4d8393ac72d087bd85ebeaecdb9.tar.bz2
trackermap-web-4a9dcfa618e1d4d8393ac72d087bd85ebeaecdb9.zip
Improve initial loading progress
Diffstat (limited to 'modern/src/MainPage.js')
-rw-r--r--modern/src/MainPage.js3
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 />