summaryrefslogtreecommitdiff
path: root/client/src/components/GuestLogin.tsx
diff options
context:
space:
mode:
authorMichael Hunteman <michael@huntm.net>2024-08-31 16:09:58 -0700
committerMichael Hunteman <michael@huntm.net>2024-08-31 16:09:58 -0700
commit9e6c97e532ef9970fc975123abaca86c4ce9b6b1 (patch)
tree340f5f00ecbed20be9a18964b17487dbd427b85a /client/src/components/GuestLogin.tsx
parentdf22d74076e3af98c2ddf1b5f7b44c71f1972640 (diff)
Update type names
Diffstat (limited to 'client/src/components/GuestLogin.tsx')
-rw-r--r--client/src/components/GuestLogin.tsx6
1 files changed, 3 insertions, 3 deletions
diff --git a/client/src/components/GuestLogin.tsx b/client/src/components/GuestLogin.tsx
index 0e47384..f42c1d6 100644
--- a/client/src/components/GuestLogin.tsx
+++ b/client/src/components/GuestLogin.tsx
@@ -5,7 +5,7 @@ import { Button, Paper, TextField, Typography } from '@mui/material';
import { useForm } from 'react-hook-form';
import { setGuest } from '../slices/auth/guestSlice';
import { useLoginGuestMutation } from '../slices/api/guestSlice';
-import type { GuestLoginRequest } from '../slices/api/guestSlice';
+import type { Name } from '../models';
function GuestLogin() {
const dispatch = useDispatch();
@@ -16,14 +16,14 @@ function GuestLogin() {
register,
handleSubmit,
formState: { errors },
- } = useForm<GuestLoginRequest>({
+ } = useForm<Name>({
defaultValues: {
firstName: '',
lastName: '',
},
});
- const onSubmit = async (data: GuestLoginRequest) => {
+ const onSubmit = async (data: Name) => {
try {
dispatch(setGuest(await login(data).unwrap()));
navigate('/rsvp');