diff options
author | Michael Hunteman <michael@huntm.net> | 2024-09-27 08:50:56 -0700 |
---|---|---|
committer | Michael Hunteman <michael@huntm.net> | 2024-09-27 08:50:56 -0700 |
commit | ea3deba121ad969cfe435a879c96c494fa570ae3 (patch) | |
tree | 4b44fa8ddc88ef9e407a302d736dd2e7f1363cdf /client/src/components/GlobalSnackbar.tsx | |
parent | a88f613da7e5567dbfdebd7df94f94507c47c6b5 (diff) |
Use app dispatch and selector
Diffstat (limited to 'client/src/components/GlobalSnackbar.tsx')
-rw-r--r-- | client/src/components/GlobalSnackbar.tsx | 6 |
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()); |