From 4d17b6baf8f3745478eb105c6ee196ebf4ceb7c7 Mon Sep 17 00:00:00 2001 From: Anton Tananaev Date: Sun, 8 May 2022 14:37:32 -0700 Subject: Move localization provider --- modern/src/App.js | 119 +++++++++++++++++++++++++--------------------------- modern/src/index.js | 9 ++-- 2 files changed, 64 insertions(+), 64 deletions(-) diff --git a/modern/src/App.js b/modern/src/App.js index 64c3e24f..702006f3 100644 --- a/modern/src/App.js +++ b/modern/src/App.js @@ -42,7 +42,6 @@ import ResetPasswordPage from './login/ResetPasswordPage'; import theme from './common/theme'; import GeofencesPage from './other/GeofencesPage'; import GeofencePage from './settings/GeofencePage'; -import { LocalizationProvider } from './common/components/LocalizationProvider'; import useQuery from './common/util/useQuery'; import { useEffectAsync } from './reactHelper'; import { devicesActions } from './store'; @@ -98,67 +97,65 @@ const App = () => { }, [query]); return (!redirectsHandled ? () : ( - - - - - - - - - - - {!initialized ? () : ( - <> -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + {!initialized ? () : ( + <> +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ {!desktop && ( +
+
- {!desktop && ( -
- -
- )} - - )} -
-
-
- + )} + + )} + + + )); }; diff --git a/modern/src/index.js b/modern/src/index.js index 28f0bbf1..63f2b66c 100644 --- a/modern/src/index.js +++ b/modern/src/index.js @@ -7,12 +7,15 @@ import { Provider } from 'react-redux'; import App from './App'; import * as serviceWorker from './serviceWorker'; import store from './store'; +import { LocalizationProvider } from './common/components/LocalizationProvider'; ReactDOM.render(( - - - + + + + + ), document.getElementById('root')); -- cgit v1.2.3