diff options
Diffstat (limited to 'client/src/slices')
-rw-r--r-- | client/src/slices/snackbarSlice.ts | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/client/src/slices/snackbarSlice.ts b/client/src/slices/snackbarSlice.ts index eca9575..f76b133 100644 --- a/client/src/slices/snackbarSlice.ts +++ b/client/src/slices/snackbarSlice.ts @@ -16,17 +16,17 @@ export const snackbarSlice = createSlice({ name: 'snackbar', initialState, reducers: { - open(state, action) { + showSnackbar: (state, action) => { state.open = true; state.message = action.payload.message; state.severity = action.payload.severity; }, - close(state) { + hideSnackbar: (state) => { state.open = false; }, }, }); -export const { open, close } = snackbarSlice.actions; +export const { showSnackbar, hideSnackbar } = snackbarSlice.actions; export const selectSnackbarState = (state: RootState) => state.snackbar; export default snackbarSlice.reducer; |