Commit 6b27e4df authored by Tang Xinwei's avatar Tang Xinwei

Enable name change

parent 05ab4465
Pipeline #5959 failed with stages
in 1 minute and 52 seconds
......@@ -78,7 +78,44 @@ class EmailForm extends React.Component {
<Input {...usernameProps.input}disabled/>,
)}
{
<div class="alert alert-warning" role="alert"> 改名功能关闭,每年13710月的第一周开放。</div>
<div class="alert alert-warning" role="alert">修改用户名后战绩会清零、也会失去绑定的云卡组。建议提前备份卡组。改名在1082359关闭。并且需要点击切换用户按钮来重新登录,才可以进入游戏。</div>
}
</FormItem>
<FormItem {...passwordProps.fromItem}>
{getFieldDecorator('password', { ...passwordProps.decorator })(
<Input {...passwordProps.input} />,
)}
</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>
......
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