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
xiaoye
Moecube Accounts Web
Commits
6b27e4df
"include/svn:/svn.code.sf.net/p/irrlicht/code/trunk@784" did not exist on "9eabb49041a9d3d1e877a141dd90c8dc6ab7b9ee"
Commit
6b27e4df
authored
Sep 30, 2021
by
Tang Xinwei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Enable name change
parent
05ab4465
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
38 additions
and
1 deletion
+38
-1
src/components/UserNameForm.js
src/components/UserNameForm.js
+38
-1
No files found.
src/components/UserNameForm.js
View file @
6b27e4df
...
...
@@ -78,7 +78,44 @@ class EmailForm extends React.Component {
<
Input
{...
usernameProps
.
input
}
disabled
/>
,
)}
{
<
div
class
=
"
alert alert-warning
"
role
=
"
alert
"
>
改名功能关闭,每年
1
、
3
、
7
、
10
月的第一周开放。
<
/div
>
<
div
class
=
"
alert alert-warning
"
role
=
"
alert
"
>
修改用户名后战绩会清零、也会失去绑定的云卡组。建议提前备份卡组。改名在
10
月
8
日
23
:
59
关闭。并且需要点击切换用户按钮来重新登录,才可以进入游戏。
<
/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
>
...
...
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