updates on the dispatch active page and the navbar design
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user