Amend LoginForm component to use updated helperText props for @patternfly/react-core 2.1.8

This commit is contained in:
Marliana Lara 2019-02-17 22:34:14 -05:00
parent 68225d191a
commit 09107aef1f
No known key found for this signature in database
GPG Key ID: 38C73B40DFA809EE

View File

@ -77,9 +77,11 @@ class AWXLogin extends Component {
<LoginForm
usernameLabel={i18n._(t`Username`)}
passwordLabel={i18n._(t`Password`)}
passwordHelperTextInvalid={i18n._(t`Invalid username or password. Please try again.`)}
showHelperText={!isInputValid}
helperText={i18n._(t`Invalid username or password. Please try again.`)}
usernameValue={username}
passwordValue={password}
isValidUsername={isInputValid}
isValidPassword={isInputValid}
onChangeUsername={this.onChangeUsername}
onChangePassword={this.onChangePassword}