Split Menu between md and smaller devices
This commit is contained in:
1 parent
3c1d83d8a2
commit
95fcb9a586
3 files changed
+12
-4
No files matched your search
@@ -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