Show if recovery key is valid

This commit is contained in:
David Baker 2018-09-17 17:05:29 +01:00
parent 9a65e6817a
commit f507aac3d5
5 changed files with 52 additions and 2 deletions

View file

@ -43,7 +43,11 @@ module.exports = React.createClass({
focus: PropTypes.bool,
// disables the primary and cancel buttons
disabled: PropTypes.bool,
// disables only the primary button
primaryDisabled: PropTypes.bool,
},
getDefaultProps: function() {
@ -73,7 +77,7 @@ module.exports = React.createClass({
<button className={primaryButtonClassName}
onClick={this.props.onPrimaryButtonClick}
autoFocus={this.props.focus}
disabled={this.props.disabled}
disabled={this.props.disabled || this.props.primaryDisabled}
>
{ this.props.primaryButton }
</button>