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