updates on the dispatch active page and the navbar design

This commit is contained in:
2026-06-08 20:21:36 +05:30
parent bbec0aa910
commit fd27ac92d8
8 changed files with 1261 additions and 434 deletions

View File

@@ -9,6 +9,7 @@ const initialState = {
openItem: ['dashboard'],
openComponent: 'buttons',
selectedID: null,
selectedMenu: null,
drawerOpen: false,
componentDrawerOpen: true,
menu: {},
@@ -48,6 +49,10 @@ const menu = createSlice({
hasError(state, action) {
state.error = action.payload;
},
setSelectedMenu(state, action) {
state.selectedMenu = action.payload;
}
},
@@ -60,4 +65,4 @@ const menu = createSlice({
export default menu.reducer;
export const { activeItem, activeComponent, openDrawer, openComponentDrawer, activeID } = menu.actions;
export const { activeItem, activeComponent, openDrawer, openComponentDrawer, activeID, setSelectedMenu } = menu.actions;