-
-
-
- } />
- } />
- } />
- } />
-
-
-
+
+
+ } />
+ } />
+ } />
+ } />
+
+
);
};
diff --git a/packages/console/src/contexts/AppThemeProvider/index.tsx b/packages/console/src/contexts/AppThemeProvider/index.tsx
index 6a79ca0d4..c61f83f06 100644
--- a/packages/console/src/contexts/AppThemeProvider/index.tsx
+++ b/packages/console/src/contexts/AppThemeProvider/index.tsx
@@ -1,5 +1,5 @@
import { Theme } from '@logto/schemas';
-import { conditionalString, trySafe } from '@silverhand/essentials';
+import { conditionalString, noop, trySafe } from '@silverhand/essentials';
import type { ReactNode } from 'react';
import { useEffect, useMemo, useState, createContext } from 'react';
@@ -10,44 +10,55 @@ import { appearanceModeGuard, DynamicAppearanceMode } from '@/types/appearance-m
import * as styles from './index.module.scss';
type Props = {
- fixedTheme?: Theme;
- appearanceMode?: AppearanceMode;
children: ReactNode;
};
-type AppTheme = {
+type Context = {
theme: Theme;
+ setAppearanceMode: (mode: AppearanceMode) => void;
+ setThemeOverride: React.Dispatch