Update index.ts
This commit is contained in:
parent
cbdd73986f
commit
751c18cb32
|
@ -12,12 +12,10 @@ const mainSlice = createSlice({
|
|||
name: 'main',
|
||||
initialState,
|
||||
reducers: {
|
||||
toggleShow(state) {
|
||||
state.show = !state.show;
|
||||
setShow(state, action) {
|
||||
state.show = action.payload;
|
||||
},
|
||||
},
|
||||
});
|
||||
|
||||
export const { toggleShow } = mainSlice.actions;
|
||||
|
||||
export default mainSlice;
|
||||
|
|
Loading…
Reference in New Issue
Block a user