MSP-3486 update stores
This commit is contained in:
1 parent
4762a0defd
commit
6f2f4915cd
1 file changed
+9
-1
@@ -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