mirror of
https://github.com/Novaloop-AG/healthchat-web.git
synced 2026-11-24 18:59:17 +00:00
Migrate CountryDropdown to TypeScript
This commit is contained in:
+7
-1
@@ -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"),
|
||||
|
||||
Reference in New Issue
Block a user