diff options
Diffstat (limited to 'modern/src/common/theme/index.js')
-rw-r--r-- | modern/src/common/theme/index.js | 6 |
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]); |