diff options
author | Ashutosh Bishnoi <mail2bishnoi@gmail.com> | 2021-04-16 19:02:35 +0530 |
---|---|---|
committer | Ashutosh Bishnoi <mail2bishnoi@gmail.com> | 2021-04-16 19:02:35 +0530 |
commit | 006ee184700c3fb04267950e52a39c697500e66c (patch) | |
tree | b9689e7d48f05a966c5f9ed2975842cef1da9260 /modern/src | |
parent | 1fd5cd30a392ed0cc0937a4df8947e53a378fe28 (diff) | |
download | trackermap-web-006ee184700c3fb04267950e52a39c697500e66c.tar.gz trackermap-web-006ee184700c3fb04267950e52a39c697500e66c.tar.bz2 trackermap-web-006ee184700c3fb04267950e52a39c697500e66c.zip |
Rename the MainController to CachingController
Diffstat (limited to 'modern/src')
-rw-r--r-- | modern/src/App.js | 4 | ||||
-rw-r--r-- | modern/src/CachingController.js (renamed from modern/src/MainController.js) | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/modern/src/App.js b/modern/src/App.js index ef5fd204..7f8a5829 100644 --- a/modern/src/App.js +++ b/modern/src/App.js @@ -30,7 +30,7 @@ import MaintenancesPage from './settings/MaintenancesPage'; import MaintenancePage from './settings/MaintenancePage'; import StatisticsPage from './admin/StatisticsPage'; -import MainController from './MainController'; +import CachingController from './CachingController'; const App = () => { const initialized = useSelector(state => !!state.session.server && !!state.session.user); @@ -39,7 +39,7 @@ const App = () => { <> <CssBaseline /> <SocketController /> - <MainController /> + <CachingController /> <Switch> <Route exact path='/login' component={LoginPage} /> <Route> diff --git a/modern/src/MainController.js b/modern/src/CachingController.js index f8f6d684..7adb39b8 100644 --- a/modern/src/MainController.js +++ b/modern/src/CachingController.js @@ -4,7 +4,7 @@ import { geofencesActions } from './store'; import { useEffectAsync } from './reactHelper'; -const MainController = () => { +const CachingController = () => { const authenticated = useSelector(state => !!state.session.user); const dispatch = useDispatch(); @@ -19,4 +19,4 @@ const MainController = () => { return null; } -export default connect()(MainController); +export default connect()(CachingController); |