summaryrefslogtreecommitdiff
path: root/client/src/components/RsvpForm.tsx
diff options
context:
space:
mode:
Diffstat (limited to 'client/src/components/RsvpForm.tsx')
-rw-r--r--client/src/components/RsvpForm.tsx4
1 files changed, 2 insertions, 2 deletions
diff --git a/client/src/components/RsvpForm.tsx b/client/src/components/RsvpForm.tsx
index b3ff0db..8dc105a 100644
--- a/client/src/components/RsvpForm.tsx
+++ b/client/src/components/RsvpForm.tsx
@@ -1,7 +1,6 @@
import React from 'react';
import { useRef } from 'react';
import { useOutletContext } from 'react-router-dom';
-import { useDispatch } from 'react-redux';
import {
Button,
FormControl,
@@ -15,6 +14,7 @@ import {
} from '@mui/material';
import MailIcon from '@mui/icons-material/Mail';
import { useForm, Controller, useFieldArray } from 'react-hook-form';
+import { useAppDispatch } from '../hooks';
import { useUpdateGuestMutation } from '../slices/api/guestSlice';
import { isFetchBaseQueryError } from '../error';
import { showSnackbar } from '../slices/snackbarSlice';
@@ -22,7 +22,7 @@ import type { Data } from '../error';
import type { Guest } from '../models';
function RsvpForm() {
- const dispatch = useDispatch();
+ const dispatch = useAppDispatch();
const [updateGuest] = useUpdateGuestMutation();
const guest: Guest = useOutletContext();
const previousPartySize = useRef((guest.partySize ?? 1) - 1);