Skip to content
Snippets Groups Projects

New component to search senior (see #12). Enhance responsiveness and solve #10 and #11

Merged Defendi Alberto requested to merge dev into master
1 file
+ 10
2
Compare changes
  • Side-by-side
  • Inline
@@ -21,7 +21,15 @@ export const ReservationDialog: FC<ReservationDialogProps> = ({
handleClose,
isOpen,
}: ReservationDialogProps) => {
const { control, handleSubmit } = useForm<ReservationProps>();
const { control, handleSubmit } = useForm<ReservationProps>({
mode: 'onSubmit',
defaultValues: {
date: '',
time: '',
destination: '',
departure: '',
},
});
const reservation = useReservations();
@@ -46,7 +54,7 @@ export const ReservationDialog: FC<ReservationDialogProps> = ({
Write here below the details of your next reservation
</DialogContentText>
<SeniorSearch />
<SeniorSearch control={control} />
<InputField
name="name"
label="Name Reservation"
Loading