added placeholders to username step

This commit is contained in:
Ben Wheeler 2019-08-18 18:07:33 +02:00
parent 96a7d01cdc
commit d02184daf3
2 changed files with 6 additions and 0 deletions

View file

@ -133,6 +133,7 @@ class UsernameStep extends React.Component {
error={errors.username}
id="username"
name="username"
placeholder={this.props.intl.formatMessage({id: 'general.username'})}
validate={this.validateUsernameIfPresent}
validationClassName="validation-full-width-input"
/* eslint-disable react/jsx-no-bind */
@ -154,6 +155,7 @@ class UsernameStep extends React.Component {
error={errors.password}
id="password"
name="password"
placeholder={this.props.intl.formatMessage({id: 'general.password'})}
type={values.showPassword ? 'text' : 'password'}
/* eslint-disable react/jsx-no-bind */
validate={password => this.validatePasswordIfPresent(password, values.username)}
@ -174,6 +176,9 @@ class UsernameStep extends React.Component {
error={errors.passwordConfirm}
id="passwordConfirm"
name="passwordConfirm"
placeholder={this.props.intl.formatMessage({
id: 'registration.confirmPasswordInstruction'
})}
type={values.showPassword ? 'text' : 'password'}
/* eslint-disable react/jsx-no-bind */
validate={() =>

View file

@ -157,6 +157,7 @@
"registration.generalError": "Sorry, an unexpected error occurred.",
"registration.classroomInviteExistingStudentStepDescription": "you have been invited to join the class:",
"registration.classroomInviteNewStudentStepDescription": "Your teacher has invited you to join a class:",
"registration.confirmPasswordInstruction": "Type password again",
"registration.confirmYourEmail": "Confirm Your Email",
"registration.confirmYourEmailDescription": "If you haven't already, please click the link in the confirmation email sent to:",
"registration.createAccount": "Create Account",