summaryrefslogtreecommitdiff
path: root/client/src/components/GlobalSnackbar.tsx
diff options
context:
space:
mode:
Diffstat (limited to 'client/src/components/GlobalSnackbar.tsx')
-rw-r--r--client/src/components/GlobalSnackbar.tsx6
1 files changed, 3 insertions, 3 deletions
diff --git a/client/src/components/GlobalSnackbar.tsx b/client/src/components/GlobalSnackbar.tsx
index c4457af..83d6582 100644
--- a/client/src/components/GlobalSnackbar.tsx
+++ b/client/src/components/GlobalSnackbar.tsx
@@ -1,18 +1,18 @@
import React from 'react';
import { Alert, Snackbar } from '@mui/material';
import { useAppDispatch, useAppSelector } from '../hooks';
-import { hideSnackbar, selectSnackbarState } from '../slices/snackbarSlice';
+import { hideSnackbar, selectUIState } from '../slices/uiSlice';
function GlobalSnackbar() {
const dispatch = useAppDispatch();
- const { open, message, severity } = useAppSelector(selectSnackbarState);
+ const { snackbarOpen, message, severity } = useAppSelector(selectUIState);
const handleClose = () => {
dispatch(hideSnackbar());
};
return (
- <Snackbar open={open} onClose={handleClose} autoHideDuration={5000}>
+ <Snackbar open={snackbarOpen} onClose={handleClose} autoHideDuration={5000}>
<div>
<Alert severity={severity} onClose={handleClose}>
{message}