fix(SW-1095): set country code based on url lang when phone input empty

This commit is contained in:
Chuma McPhoy
2024-11-29 09:20:50 +01:00
parent dde953c270
commit 4da0918469
2 changed files with 30 additions and 7 deletions

View File

@@ -0,0 +1,15 @@
import type { CountryCode } from "libphonenumber-js/min"
import type { RegisterOptions } from "react-hook-form"
export type LowerCaseCountryCode = Lowercase<CountryCode>
export interface PhoneProps {
ariaLabel?: string
className?: string
disabled?: boolean
label: string
name?: string
placeholder?: string
readOnly?: boolean
registerOptions?: RegisterOptions
}