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', 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;