Management: add support color scheme

This commit is contained in:
Viktor Fomin 2023-09-05 19:29:37 +03:00
parent cc989bfd12
commit 1246cf9fce

View File

@ -26,7 +26,7 @@ const App = observer(() => {
const { authStore } = useStore();
const { init, settingsStore, userStore } = authStore;
const { theme, setTheme } = settingsStore;
const { theme, setTheme, currentColorScheme } = settingsStore;
const userTheme = userStore?.user?.theme ? userStore?.user?.theme : "Dark";
@ -51,7 +51,10 @@ const App = observer(() => {
);
return (
<ThemeProvider theme={{ ...theme, interfaceDirection: i18n.dir() }}>
<ThemeProvider
theme={{ ...theme, interfaceDirection: i18n.dir() }}
currentColorScheme={currentColorScheme}
>
<Layout>
{toast}
<NavMenu hideProfileMenu customHeader={<SimpleHeader />} />