fix: Support 10-digit phone numbers for Ivory Coast (+225) (#26465)

* fix: update ivory coast mask to 10 digits

* update formating for Benin numbers

---------

Co-authored-by: Dhairyashil Shinde <[email protected]>
Co-authored-by: Dhairyashil <[email protected]>
This commit is contained in:
authored and GitHub committed 2026-01-06 22:31:21 +00:00
1 parent 1ebe7aa8ab
commit b8b9251f76
1 file changed
+7
@@ -11,6 +11,11 @@ import { useBookerStore, type CountryCode } from "@calcom/features/bookings/Book
import { trpc } from "@calcom/trpc/react";
import classNames from "@calcom/ui/classNames";
const CUSTOM_PHONE_MASKS = {
ci: ".. .. .. .. ..",
bj: ".. .. .. .. ..",
};
export type PhoneInputProps = {
value?: string;
id?: string;
@@ -67,6 +72,7 @@ function BasePhoneInput({
enableSearch
disableSearchIcon
country={effectiveDefaultCountry}
masks={CUSTOM_PHONE_MASKS}
inputProps={{
name,
required: rest.required,
@@ -118,6 +124,7 @@ function BasePhoneInputWeb({
country={value ? undefined : defaultCountry}
enableSearch
disableSearchIcon
masks={CUSTOM_PHONE_MASKS}
inputProps={{
name,
required: rest.required,