mirror of
https://github.com/jeffvli/feishin.git
synced 2026-05-16 21:50:35 +02:00
optimize various base components
This commit is contained in:
@@ -249,9 +249,14 @@ export const useAppTheme = (overrideTheme?: AppTheme) => {
|
||||
}
|
||||
}, [colorVars, selectedTheme, themeVars]);
|
||||
|
||||
const mantineTheme = useMemo(
|
||||
() => createMantineTheme(appTheme as AppThemeConfiguration),
|
||||
[appTheme],
|
||||
);
|
||||
|
||||
return {
|
||||
mode: appTheme?.mode || 'dark',
|
||||
theme: createMantineTheme(appTheme as AppThemeConfiguration),
|
||||
theme: mantineTheme,
|
||||
};
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user