Update @hookform/resolvers

In v5 the zod resolver will automatically infer the type for `useForm`.
It's not recommended to manually specify types.
See https://github.com/react-hook-form/resolvers/releases/tag/v5.0.0
This commit is contained in:
Anton Gunnarsson
2025-05-07 10:22:19 +02:00
parent 83646d4d02
commit f46bc8f920
6 changed files with 20 additions and 13 deletions

View File

@@ -113,7 +113,7 @@ export default function BookingWidgetClient({
},
]
const hotelId = isNaN(+params.hotelId) ? undefined : +params.hotelId
const methods = useForm<BookingWidgetSchema>({
const methods = useForm({
defaultValues: {
search: selectedLocation?.name ?? "",
// Only used for displaying the selected location for mobile, not for actual form input