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 f0019fa..c4457af 100644
--- a/client/src/components/GlobalSnackbar.tsx
+++ b/client/src/components/GlobalSnackbar.tsx
@@ -1,11 +1,11 @@
import React from 'react';
-import { useDispatch, useSelector } from 'react-redux';
import { Alert, Snackbar } from '@mui/material';
+import { useAppDispatch, useAppSelector } from '../hooks';
import { hideSnackbar, selectSnackbarState } from '../slices/snackbarSlice';
function GlobalSnackbar() {
- const dispatch = useDispatch();
- const { open, message, severity } = useSelector(selectSnackbarState);
+ const dispatch = useAppDispatch();
+ const { open, message, severity } = useAppSelector(selectSnackbarState);
const handleClose = () => {
dispatch(hideSnackbar());