Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
M
Moecube Accounts Web
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Packages
Packages
List
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issues
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
MyCard
Moecube Accounts Web
Commits
8a8a73d9
Commit
8a8a73d9
authored
Oct 01, 2021
by
Tang Xinwei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Enable change name fix test
parent
c4b08b75
Pipeline
#5963
passed with stages
in 2 minutes and 3 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
40 deletions
+3
-40
src/components/UserNameForm.js
src/components/UserNameForm.js
+3
-40
No files found.
src/components/UserNameForm.js
View file @
8a8a73d9
...
...
@@ -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
"
>
修改用户名后战绩会清零、也会失去绑定的云卡组。建议提前备份卡组。改名在
10
月
8
日
23
:
59
关闭。
并且需要点击切换用户按钮来重新登录,才可以进入游戏。
<
/div
>
<
div
class
=
"
alert alert-warning
"
role
=
"
alert
"
>
修改用户名后战绩会清零、也会失去绑定的云卡组。建议提前备份卡组。改名在
10
月
8
日
23
:
59
关闭。
<
/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
>
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment