optimize various base components

This commit is contained in:
jeffvli
2026-01-02 12:46:35 -08:00
parent a66c67e86d
commit d06d1674d1
31 changed files with 669 additions and 393 deletions
+6 -1
View File
@@ -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,
};
};