From 8427d638720abc9694bf02c2fb29586e748d3c44 Mon Sep 17 00:00:00 2001 From: Yaodong Yu <2814461814@qq.com> Date: Sun, 5 Mar 2023 21:52:40 +0800 Subject: [PATCH] feat: fix empty value of countryCode for signup (#1620) --- web/src/ProviderEditPage.js | 4 ++-- web/src/UserEditPage.js | 4 ++-- web/src/auth/SignupPage.js | 20 +++---------------- ...oneNumberInput.js => CountryCodeSelect.js} | 2 +- 4 files changed, 8 insertions(+), 22 deletions(-) rename web/src/common/{PhoneNumberInput.js => CountryCodeSelect.js} (96%) diff --git a/web/src/ProviderEditPage.js b/web/src/ProviderEditPage.js index d232cff9..417e1df1 100644 --- a/web/src/ProviderEditPage.js +++ b/web/src/ProviderEditPage.js @@ -24,7 +24,7 @@ import * as ProviderEditTestSms from "./TestSmsWidget"; import copy from "copy-to-clipboard"; import {CaptchaPreview} from "./common/CaptchaPreview"; import * as OrganizationBackend from "./backend/OrganizationBackend"; -import {PhoneNumberInput} from "./common/PhoneNumberInput"; +import {CountryCodeSelect} from "./common/CountryCodeSelect"; const {Option} = Select; const {TextArea} = Input; @@ -667,7 +667,7 @@ class ProviderEditPage extends React.Component {