Improve SMS Test's initial value

This commit is contained in:
Yang Luo 2023-09-09 02:38:15 +08:00
parent a84752bbb5
commit f39358e122

View File

@ -962,15 +962,15 @@ class ProviderEditPage extends React.Component {
<Col span={4} > <Col span={4} >
<Input.Group compact> <Input.Group compact>
<CountryCodeSelect <CountryCodeSelect
style={{width: "30%"}} style={{width: "90px"}}
value={this.state.provider.content} initValue={this.state.provider.content}
onChange={(value) => { onChange={(value) => {
this.updateProviderField("content", value); this.updateProviderField("content", value);
}} }}
countryCodes={this.props.account.organization.countryCodes} countryCodes={this.props.account.organization.countryCodes}
/> />
<Input value={this.state.provider.receiver} <Input value={this.state.provider.receiver}
style={{width: "70%"}} style={{width: "150px"}}
placeholder = {i18next.t("user:Input your phone number")} placeholder = {i18next.t("user:Input your phone number")}
onChange={e => { onChange={e => {
this.updateProviderField("receiver", e.target.value); this.updateProviderField("receiver", e.target.value);