Explore category to store
This commit is contained in:
parent
b619fe34f8
commit
d8d8ac35f8
3 changed files with 16 additions and 15 deletions
|
@ -21,6 +21,7 @@ const dataStore = createSlice( {
|
|||
},
|
||||
},
|
||||
reloadCalendar: true,
|
||||
viewCategory: null,
|
||||
},
|
||||
reducers: {
|
||||
setSession: (state, action) => {
|
||||
|
@ -29,10 +30,14 @@ const dataStore = createSlice( {
|
|||
setReloadCalendar: (state, action) => {
|
||||
state.reloadCalendar = action.payload;
|
||||
},
|
||||
setViewCategory: (state, action) => {
|
||||
state.viewCategory = action.payload;
|
||||
},
|
||||
},
|
||||
} );
|
||||
|
||||
export const { setSession } = dataStore.actions;
|
||||
export const { setReloadCalendar } = dataStore.actions;
|
||||
export const { setViewCategory } = dataStore.actions;
|
||||
|
||||
export default dataStore.reducer;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue