Editor: add support color scheme

This commit is contained in:
Viktor Fomin 2023-07-17 14:20:18 +03:00
parent daf7893632
commit cc7dd8c743

View File

@ -128,7 +128,10 @@ const AppWrapper = inject(({ auth }) => {
const ThemeProviderWrapper = inject(({ auth }) => {
const { settingsStore } = auth;
return { theme: settingsStore.theme };
let currentColorScheme = false;
currentColorScheme = settingsStore.currentColorScheme || false;
return { theme: settingsStore.theme, currentColorScheme };
})(observer(ThemeProvider));
export default (props) => (