Be more positive in property naming

pull/21833/head
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}
setEmailSid={this._setEmailSid}
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,
errorText: PropTypes.string,
busy: PropTypes.bool,
hideContinue: PropTypes.bool,
showContinue: PropTypes.bool,
},
componentWillMount: function() {
@ -332,7 +332,7 @@ export const TermsAuthEntry = React.createClass({
}
let submitButton;
if (!this.props.hideContinue) {
if (this.props.showContinue !== false) {
// XXX: button classes
submitButton = <button className="mx_InteractiveAuthEntryComponents_termsSubmit mx_UserSettings_button"
onClick={this._trySubmit} disabled={!allChecked}>{_t("Accept")}</button>;