Add phone prefix to UI.

This commit is contained in:
Yang Luo
2021-05-14 17:39:53 +08:00
parent db5ecddd3f
commit d361a39ffc
3 changed files with 7 additions and 6 deletions

View File

@ -273,7 +273,7 @@ class UserEditPage extends React.Component {
{i18next.t("general:Phone")}:
</Col>
<Col span={22} >
<Input value={this.state.user.phone} disabled/>
<Input value={this.state.user.phone} addonBefore={`+${this.state.application?.organizationObj.phonePrefix}`} disabled />
{ this.state.user.id === this.props.account.id ? (<ResetModal buttonText={i18next.t("user:Reset Phone")} destType={"phone"} coolDownTime={60}/>) : null}
</Col>
</Row>