aboutsummaryrefslogtreecommitdiff
path: root/modern/src/common/theme/index.js
diff options
context:
space:
mode:
authorAnton Tananaev <anton@traccar.org>2023-08-27 17:21:22 -0700
committerAnton Tananaev <anton@traccar.org>2023-08-27 17:21:22 -0700
commit289a968c3f9d8d95b6bb6f346135480cfc246a75 (patch)
tree7f313c1d2662eefa1e65979b99f95747cb8d268e /modern/src/common/theme/index.js
parent1ee5de2369d3ab9649f829d9499f609f85e3337f (diff)
downloadtrackermap-web-289a968c3f9d8d95b6bb6f346135480cfc246a75.tar.gz
trackermap-web-289a968c3f9d8d95b6bb6f346135480cfc246a75.tar.bz2
trackermap-web-289a968c3f9d8d95b6bb6f346135480cfc246a75.zip
Fix theme hooks usage
Diffstat (limited to 'modern/src/common/theme/index.js')
-rw-r--r--modern/src/common/theme/index.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/modern/src/common/theme/index.js b/modern/src/common/theme/index.js
index 0f163e7e..e8ce698b 100644
--- a/modern/src/common/theme/index.js
+++ b/modern/src/common/theme/index.js
@@ -4,8 +4,8 @@ import palette from './palette';
import dimensions from './dimensions';
import components from './components';
-export default (server) => useMemo(() => createTheme({
- palette: palette(server),
+export default (server, darkMode) => useMemo(() => createTheme({
+ palette: palette(server, darkMode),
dimensions,
components,
-}), [server]);
+}), [server, darkMode]);