mirror of
https://gitlab.com/mbugroup/lti-web-client.git
synced 2026-05-21 13:55:45 +00:00
feat(FE): add drawer ui 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