Use render prefix for JSX methods in Login

This commit is contained in:
J. Ryan Stinnett 2019-01-28 22:19:33 -06:00
parent 2f87d0c8cb
commit ad76451655

View file

@ -539,7 +539,7 @@ module.exports = React.createClass({
return errorText; return errorText;
}, },
serverComponentForStep() { renderServerComponentForStep() {
const ServerTypeSelector = sdk.getComponent("auth.ServerTypeSelector"); const ServerTypeSelector = sdk.getComponent("auth.ServerTypeSelector");
const ServerConfig = sdk.getComponent("auth.ServerConfig"); const ServerConfig = sdk.getComponent("auth.ServerConfig");
const ModularServerConfig = sdk.getComponent("auth.ModularServerConfig"); const ModularServerConfig = sdk.getComponent("auth.ModularServerConfig");
@ -605,7 +605,7 @@ module.exports = React.createClass({
</div>; </div>;
}, },
loginComponentForStep() { renderLoginComponentForStep() {
if (PHASES_ENABLED && this.state.phase !== PHASE_LOGIN) { if (PHASES_ENABLED && this.state.phase !== PHASE_LOGIN) {
return null; return null;
} }
@ -707,8 +707,8 @@ module.exports = React.createClass({
{loader} {loader}
</h2> </h2>
{ errorTextSection } { errorTextSection }
{ this.serverComponentForStep() } { this.renderServerComponentForStep() }
{ this.loginComponentForStep() } { this.renderLoginComponentForStep() }
<a className="mx_Auth_changeFlow" onClick={this.onRegisterClick} href="#"> <a className="mx_Auth_changeFlow" onClick={this.onRegisterClick} href="#">
{ _t('Create account') } { _t('Create account') }
</a> </a>