summaryrefslogtreecommitdiff
path: root/client/src/components/GuestLogin.tsx
diff options
context:
space:
mode:
authorMichael Hunteman <michael@huntm.net>2024-09-27 08:50:56 -0700
committerMichael Hunteman <michael@huntm.net>2024-09-27 08:50:56 -0700
commitea3deba121ad969cfe435a879c96c494fa570ae3 (patch)
tree4b44fa8ddc88ef9e407a302d736dd2e7f1363cdf /client/src/components/GuestLogin.tsx
parenta88f613da7e5567dbfdebd7df94f94507c47c6b5 (diff)
Use app dispatch and selector
Diffstat (limited to 'client/src/components/GuestLogin.tsx')
-rw-r--r--client/src/components/GuestLogin.tsx4
1 files changed, 2 insertions, 2 deletions
diff --git a/client/src/components/GuestLogin.tsx b/client/src/components/GuestLogin.tsx
index 9a9bf8e..d0270cb 100644
--- a/client/src/components/GuestLogin.tsx
+++ b/client/src/components/GuestLogin.tsx
@@ -1,8 +1,8 @@
import React from 'react';
import { useNavigate } from 'react-router-dom';
-import { useDispatch } from 'react-redux';
import { Button, Paper, TextField, Typography } from '@mui/material';
import { useForm } from 'react-hook-form';
+import { useAppDispatch } from '../hooks';
import { setGuest } from '../slices/auth/guestSlice';
import { useLoginGuestMutation } from '../slices/api/guestSlice';
import { showSnackbar } from '../slices/snackbarSlice';
@@ -11,7 +11,7 @@ import type { Data } from '../error';
import type { Name } from '../models';
function GuestLogin() {
- const dispatch = useDispatch();
+ const dispatch = useAppDispatch();
const navigate = useNavigate();
const [login] = useLoginGuestMutation();