From ea3deba121ad969cfe435a879c96c494fa570ae3 Mon Sep 17 00:00:00 2001
From: Michael Hunteman <michael@huntm.net>
Date: Fri, 27 Sep 2024 08:50:56 -0700
Subject: Use app dispatch and selector

---
 client/src/components/GlobalSnackbar.tsx | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

(limited to 'client/src/components/GlobalSnackbar.tsx')

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());
-- 
cgit v1.2.3

