@@ -391,8 +393,14 @@ const BookingPage = (props: BookingPageProps) => {
{t("phone_number")}
)}
diff --git a/apps/web/components/ui/form/PhoneInput.tsx b/apps/web/components/ui/form/PhoneInput.tsx
index 8d6f7838..4c35a6ea 100644
--- a/apps/web/components/ui/form/PhoneInput.tsx
+++ b/apps/web/components/ui/form/PhoneInput.tsx
@@ -1,18 +1,24 @@
import React from "react";
-import BasePhoneInput, { Props as PhoneInputProps } from "react-phone-number-input";
+import { Control } from "react-hook-form";
+import BasePhoneInput, { Props } from "react-phone-number-input/react-hook-form";
import "react-phone-number-input/style.css";
import classNames from "@lib/classNames";
-import { Optional } from "@lib/types/utils";
-export const PhoneInput = (
- props: Optional
>, "onChange">
-) => (
+type PhoneInputProps = {
+ value: string;
+ id: string;
+ placeholder: string;
+ required: boolean;
+};
+
+export const PhoneInput = ({ control, name, ...rest }: Props) => (
{
/* DO NOT REMOVE: Callback required by PhoneInput, comment added to satisfy eslint:no-empty-function */