fix normal user phone edit control

This commit is contained in:
Gucheng Wang
2023-02-25 11:47:34 +08:00
parent 8fbd5b1a74
commit d104a292e7
3 changed files with 25 additions and 43 deletions

View File

@ -223,10 +223,6 @@ export function countryFlag(country) {
return <img src={`${StaticBaseUrl}/flag-icons/${country.code}.svg`} alt={country.name} height={20} style={{marginRight: 10}} />;
}
export function getPhoneCodeFromCountryCode(countryCode) {
return phoneNumber.isSupportedCountry(countryCode) ? phoneNumber.getCountryCallingCode(countryCode) : "";
}
export function initServerUrl() {
// const hostname = window.location.hostname;
// if (hostname === "localhost") {