aboutsummaryrefslogtreecommitdiff
path: root/modern/src/App.js
diff options
context:
space:
mode:
authorAshutosh Bishnoi <mail2bishnoi@gmail.com>2021-05-03 17:45:13 +0530
committerAshutosh Bishnoi <mail2bishnoi@gmail.com>2021-05-03 17:45:13 +0530
commit73623e1eccde7160fa83b79ad96ae744fa357a32 (patch)
treebea85f23bb787abe67fac6a34f641a7e9d1af1a7 /modern/src/App.js
parent17e1f8c7b67a36c4e9384b7c7b930b68c8bfd6f4 (diff)
downloadtrackermap-web-73623e1eccde7160fa83b79ad96ae744fa357a32.tar.gz
trackermap-web-73623e1eccde7160fa83b79ad96ae744fa357a32.tar.bz2
trackermap-web-73623e1eccde7160fa83b79ad96ae744fa357a32.zip
Initial Login Screen Draft
Diffstat (limited to 'modern/src/App.js')
-rw-r--r--modern/src/App.js7
1 files changed, 5 insertions, 2 deletions
diff --git a/modern/src/App.js b/modern/src/App.js
index 5fd10deb..7ff090ac 100644
--- a/modern/src/App.js
+++ b/modern/src/App.js
@@ -1,4 +1,5 @@
import React from 'react';
+import { ThemeProvider } from '@material-ui/core/styles';
import { Switch, Route } from 'react-router-dom'
import CssBaseline from '@material-ui/core/CssBaseline';
import MainPage from './MainPage';
@@ -31,11 +32,13 @@ import MaintenancePage from './settings/MaintenancePage';
import StatisticsPage from './admin/StatisticsPage';
import CachingController from './CachingController';
+import theme from './Theme';
+
const App = () => {
const initialized = useSelector(state => !!state.session.server && !!state.session.user);
return (
- <>
+ <ThemeProvider theme={theme}>
<CssBaseline />
<SocketController />
<CachingController />
@@ -72,7 +75,7 @@ const App = () => {
)}
</Route>
</Switch>
- </>
+ </ThemeProvider>
);
}