mirror of
https://gitlab.com/mbugroup/lti-web-client.git
synced 2026-05-21 05:45:46 +00:00
feat(FE): refactor drawer zustand store
This commit is contained in:
Vendored
+10
-1
@@ -3,4 +3,13 @@ type MainUiSlice = {
|
||||
setMainDrawerOpen: (open: boolean) => void;
|
||||
};
|
||||
|
||||
export type UIStore = MainUiSlice;
|
||||
type DrawerUISlice = {
|
||||
triggerValidate: boolean;
|
||||
toggleValidate: () => void;
|
||||
subscribeValidate: (callback: () => void) => void;
|
||||
isValid: boolean;
|
||||
setIsValid: (v: boolean) => void;
|
||||
subscribeIsValid: (callback: (isValid: boolean) => void) => () => void;
|
||||
};
|
||||
|
||||
export type UIStore = MainUiSlice & DrawerUISlice;
|
||||
|
||||
Reference in New Issue
Block a user