fix(SW-1095): set country code based on url lang when phone input empty
This commit is contained in:
15
types/components/form/phone.ts
Normal file
15
types/components/form/phone.ts
Normal 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
|
||||
}
|
||||
Reference in New Issue
Block a user