Commit 8a8a73d9 authored by Tang Xinwei's avatar Tang Xinwei

Enable change name fix test

parent c4b08b75
Pipeline #5963 passed with stages
in 2 minutes and 3 seconds
......@@ -75,10 +75,10 @@ class EmailForm extends React.Component {
<Form onSubmit={this.onSubmit}>
<FormItem {...usernameProps.fromItem}>
{getFieldDecorator('username', { ...usernameProps.decorator })(
<Input {...usernameProps.input}disabled/>,
<Input {...usernameProps.input}/>,
)}
{
<div class="alert alert-warning" role="alert">修改用户名后战绩会清零、也会失去绑定的云卡组。建议提前备份卡组。改名在1082359关闭。并且需要点击切换用户按钮来重新登录,才可以进入游戏。</div>
<div class="alert alert-warning" role="alert">修改用户名后战绩会清零、也会失去绑定的云卡组。建议提前备份卡组。改名在1082359关闭。</div>
}
</FormItem>
......@@ -90,44 +90,7 @@ class EmailForm extends React.Component {
</FormItem>
<FormItem>
<SubmitButton />
</FormItem>
</Form>
);
}
}
function mapStateToProps(state) {
const {
user: { user },
auth: { isUserNameExists, checkUsername },
common: { messages },
} = state;
return {
user,
messages,
checkUsername,
isUserNameExists,
};
}
const WrapperEmailForm = Form.create()(EmailForm);
export default connect(mapStateToProps)(WrapperEmailForm);
</FormItem>
<FormItem {...passwordProps.fromItem}>
{getFieldDecorator('password', { ...passwordProps.decorator })(
<Input {...passwordProps.input} />,
)}
</FormItem>
<FormItem>
<SubmitButton disabled/>
<SubmitButton/>
</FormItem>
</Form>
);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment