Migrate CountryDropdown to TypeScript
This commit is contained in:
parent
c6dd9bc526
commit
8ef9c3dfeb
2 changed files with 42 additions and 25 deletions
|
@ -42,7 +42,13 @@ export const getEmojiFlag = (countryCode: string) => {
|
|||
return String.fromCodePoint(...countryCode.split('').map(l => UNICODE_BASE + l.charCodeAt(0)));
|
||||
};
|
||||
|
||||
export const COUNTRIES = [
|
||||
export interface PhoneNumberCountryDefinition {
|
||||
iso2: string;
|
||||
name: string;
|
||||
prefix: string;
|
||||
}
|
||||
|
||||
export const COUNTRIES: PhoneNumberCountryDefinition[] = [
|
||||
{
|
||||
"iso2": "GB",
|
||||
"name": _td("United Kingdom"),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue