diff --git a/web/src/store/main/index.ts b/web/src/store/main/index.ts index 553b09b..0f3993c 100644 --- a/web/src/store/main/index.ts +++ b/web/src/store/main/index.ts @@ -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;