nicolium: fix theme changes overriding defaults
Signed-off-by: nicole mikołajczyk <git@mkljczk.pl>
This commit is contained in:
@@ -78,7 +78,7 @@ const useThemeCss = (overwriteConfig?: FrontendConfig) => {
|
||||
let baseTheme: Partial<FrontendConfig>;
|
||||
if (overwriteConfig) baseTheme = overwriteConfig;
|
||||
else if (demo) baseTheme = {};
|
||||
else baseTheme = theme ?? frontendConfig;
|
||||
else baseTheme = { ...frontendConfig, ...theme };
|
||||
|
||||
const colors = normalizeColors(baseTheme);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user