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/Admin.tsx | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

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

diff --git a/client/src/components/Admin.tsx b/client/src/components/Admin.tsx
index ab75976..eec675a 100644
--- a/client/src/components/Admin.tsx
+++ b/client/src/components/Admin.tsx
@@ -1,11 +1,11 @@
 import React from 'react';
 import { useMemo } from 'react';
 import { useLocation, Navigate, Outlet } from 'react-router-dom';
-import { useSelector } from 'react-redux';
+import { useAppSelector } from '../hooks';
 import { selectGuests } from '../slices/auth/adminSlice';
 
 const authenticate = () => {
-  const guests = useSelector(selectGuests);
+  const guests = useAppSelector(selectGuests);
   return useMemo(() => ({ guests }), [guests]);
 };
 
-- 
cgit v1.2.3

