Update index.ts

This commit is contained in:
Lorraxs 2024-02-27 13:38:21 +07:00
parent cbdd73986f
commit 751c18cb32

View File

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