aboutsummaryrefslogtreecommitdiff
path: root/modern/src/App.js
diff options
context:
space:
mode:
authorAnton Tananaev <anton@traccar.org>2023-05-15 13:36:47 -0700
committerAnton Tananaev <anton@traccar.org>2023-05-15 13:36:47 -0700
commit4aa5da9a669c58dbe43600e576bcfc0346c121a0 (patch)
treeaf7ac9d66354dfc26ca4e115c03c3ca0c1fbd8c6 /modern/src/App.js
parent474104189d270df752d8a177685c2ab413683b3a (diff)
downloadtrackermap-web-4aa5da9a669c58dbe43600e576bcfc0346c121a0.tar.gz
trackermap-web-4aa5da9a669c58dbe43600e576bcfc0346c121a0.tar.bz2
trackermap-web-4aa5da9a669c58dbe43600e576bcfc0346c121a0.zip
Make theme dynamic
Diffstat (limited to 'modern/src/App.js')
-rw-r--r--modern/src/App.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/modern/src/App.js b/modern/src/App.js
index baa2c3f2..89785cfa 100644
--- a/modern/src/App.js
+++ b/modern/src/App.js
@@ -1,9 +1,8 @@
import React from 'react';
import { Outlet, useNavigate } from 'react-router-dom';
import { useDispatch, useSelector } from 'react-redux';
-import { LinearProgress, useMediaQuery } from '@mui/material';
+import { LinearProgress, useMediaQuery, useTheme } from '@mui/material';
import makeStyles from '@mui/styles/makeStyles';
-import theme from './common/theme';
import BottomMenu from './common/components/BottomMenu';
import SocketController from './SocketController';
import CachingController from './CachingController';
@@ -22,6 +21,7 @@ const useStyles = makeStyles(() => ({
const App = () => {
const classes = useStyles();
+ const theme = useTheme();
const dispatch = useDispatch();
const navigate = useNavigate();