Split Menu between md and smaller devices
This commit is contained in:
@ -10,6 +10,7 @@ export interface State {
|
||||
User?: string
|
||||
},
|
||||
ShowMenu?: boolean,
|
||||
ExpandMenu?: boolean,
|
||||
Budgets: Map<string, Budget>,
|
||||
CurrentBudgetID?: string,
|
||||
}
|
||||
@ -39,6 +40,9 @@ export const store = createStore<State>({
|
||||
toggleMenu(state) {
|
||||
state.ShowMenu = !state.ShowMenu;
|
||||
},
|
||||
toggleMenuSize(state) {
|
||||
state.ExpandMenu = !state.ExpandMenu;
|
||||
},
|
||||
initializeStore(state) {
|
||||
const store = localStorage.getItem("store");
|
||||
if (!store)
|
||||
|
Reference in New Issue
Block a user