aboutsummaryrefslogtreecommitdiff
path: root/src/common/theme
diff options
context:
space:
mode:
authorAnton Tananaev <anton@traccar.org>2024-04-07 09:56:18 -0700
committerAnton Tananaev <anton@traccar.org>2024-04-07 09:56:18 -0700
commit79c6ac5e2cf5a7778da5b4ac1229897234531f25 (patch)
treeb30641cc70a87e5c75fb120b2090f3f83b5f7d36 /src/common/theme
parent393651524bd66ed72d82b93f556ed4cc747a73c3 (diff)
downloadtrackermap-web-79c6ac5e2cf5a7778da5b4ac1229897234531f25.tar.gz
trackermap-web-79c6ac5e2cf5a7778da5b4ac1229897234531f25.tar.bz2
trackermap-web-79c6ac5e2cf5a7778da5b4ac1229897234531f25.zip
Theme and styles RTL support
Diffstat (limited to 'src/common/theme')
-rw-r--r--src/common/theme/index.js5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/common/theme/index.js b/src/common/theme/index.js
index e8ce698b..00958497 100644
--- a/src/common/theme/index.js
+++ b/src/common/theme/index.js
@@ -4,8 +4,9 @@ import palette from './palette';
import dimensions from './dimensions';
import components from './components';
-export default (server, darkMode) => useMemo(() => createTheme({
+export default (server, darkMode, direction) => useMemo(() => createTheme({
palette: palette(server, darkMode),
+ direction,
dimensions,
components,
-}), [server, darkMode]);
+}), [server, darkMode, direction]);