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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user