Split Menu between md and smaller devices

This commit is contained in:
2022-02-07 16:07:54 +00:00
parent 3c1d83d8a2
commit 95fcb9a586
3 changed files with 12 additions and 4 deletions

View File

@ -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)