2024-06-28 14:52:13: merge [main:483f760b403ae5c9d0cb5ace25a08bf0b5f41799];
This commit is contained in:
1 parent
0dbf4b0b07
commit
2ebeb14f0e
32 files changed
+113
-72
No files matched your search
@@ -21,11 +21,19 @@ import UIReducer from './redusers/UISlice.ts'
|
||||
|
||||
export interface ContextProps {
|
||||
setTheme: Dispatch<
|
||||
SetStateAction<{ algorithm: (token: SeedToken) => MapToken }>
|
||||
SetStateAction<{
|
||||
algorithm: (token: SeedToken) => MapToken
|
||||
cssVar: boolean
|
||||
token: { colorBgLayout: string }
|
||||
}>
|
||||
>
|
||||
changeTheme: boolean
|
||||
setChangeTheme: Dispatch<SetStateAction<boolean>>
|
||||
}
|
||||
|
||||
export const Context = createContext<ContextProps>({
|
||||
changeTheme: false,
|
||||
setChangeTheme: () => false,
|
||||
setTheme: () => theme.defaultAlgorithm
|
||||
})
|
||||
|
||||
|
||||
Reference in new issue
Block a user