Commit f680688e authored by Tang Xinwei's avatar Tang Xinwei Committed by GitHub

disable change user name (Until July)

改用户名的功能限时开放的时间过了,所以revert了回关闭用户名的时候
parent 7ba4ed35
...@@ -75,10 +75,10 @@ class EmailForm extends React.Component { ...@@ -75,10 +75,10 @@ class EmailForm extends React.Component {
<Form onSubmit={this.onSubmit}> <Form onSubmit={this.onSubmit}>
<FormItem {...usernameProps.fromItem}> <FormItem {...usernameProps.fromItem}>
{getFieldDecorator('username', { ...usernameProps.decorator })( {getFieldDecorator('username', { ...usernameProps.decorator })(
<Input {...usernameProps.input} />, <Input {...usernameProps.input} disabled />,
)} )}
{ {
<div class="alert alert-warning" role="alert">修改用户名后战绩会清零、也会失去绑定的云卡组。建议提前备份卡组。</div> <div class="alert alert-warning" role="alert"><strong>目前修改用户名功能暂时关闭,将在7月初开。</strong>修改用户名后战绩会清零、也会失去绑定的云卡组。建议提前备份卡组。</div>
} }
</FormItem> </FormItem>
...@@ -90,7 +90,7 @@ class EmailForm extends React.Component { ...@@ -90,7 +90,7 @@ class EmailForm extends React.Component {
</FormItem> </FormItem>
<FormItem> <FormItem>
<SubmitButton /> <SubmitButton disabled />
</FormItem> </FormItem>
</Form> </Form>
); );
...@@ -115,4 +115,3 @@ function mapStateToProps(state) { ...@@ -115,4 +115,3 @@ function mapStateToProps(state) {
const WrapperEmailForm = Form.create()(EmailForm); const WrapperEmailForm = Form.create()(EmailForm);
export default connect(mapStateToProps)(WrapperEmailForm); export default connect(mapStateToProps)(WrapperEmailForm);
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