Be more positive in property naming

This commit is contained in:
Travis Ralston 2018-11-16 12:15:44 -07:00
parent 8916c90fed
commit 7df003ef74
2 changed files with 3 additions and 3 deletions

View file

@ -203,7 +203,7 @@ export default React.createClass({
fail={this._onAuthStageFailed} fail={this._onAuthStageFailed}
setEmailSid={this._setEmailSid} setEmailSid={this._setEmailSid}
makeRegistrationUrl={this.props.makeRegistrationUrl} makeRegistrationUrl={this.props.makeRegistrationUrl}
hideContinue={this.props.continueIsManaged} showContinue={!this.props.continueIsManaged}
/> />
); );
}, },

View file

@ -222,7 +222,7 @@ export const TermsAuthEntry = React.createClass({
stageParams: PropTypes.object.isRequired, stageParams: PropTypes.object.isRequired,
errorText: PropTypes.string, errorText: PropTypes.string,
busy: PropTypes.bool, busy: PropTypes.bool,
hideContinue: PropTypes.bool, showContinue: PropTypes.bool,
}, },
componentWillMount: function() { componentWillMount: function() {
@ -332,7 +332,7 @@ export const TermsAuthEntry = React.createClass({
} }
let submitButton; let submitButton;
if (!this.props.hideContinue) { if (this.props.showContinue !== false) {
// XXX: button classes // XXX: button classes
submitButton = <button className="mx_InteractiveAuthEntryComponents_termsSubmit mx_UserSettings_button" submitButton = <button className="mx_InteractiveAuthEntryComponents_termsSubmit mx_UserSettings_button"
onClick={this._trySubmit} disabled={!allChecked}>{_t("Accept")}</button>; onClick={this._trySubmit} disabled={!allChecked}>{_t("Accept")}</button>;