From 751c18cb3223165cb3a8d7080940c4ab53f3cbcd Mon Sep 17 00:00:00 2001 From: Lorraxs Date: Tue, 27 Feb 2024 13:38:21 +0700 Subject: [PATCH] Update index.ts --- web/src/store/main/index.ts | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) 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;