Explore category to store

This commit is contained in:
Maarten 2024-08-08 14:18:32 +02:00
parent b619fe34f8
commit d8d8ac35f8
3 changed files with 16 additions and 15 deletions

View file

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