mirror of
https://github.com/element-hq/element-web
synced 2024-11-27 19:56:47 +03:00
Use render prefix for JSX methods in Login
This commit is contained in:
parent
2f87d0c8cb
commit
ad76451655
1 changed files with 4 additions and 4 deletions
|
@ -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>
|
||||||
|
|
Loading…
Reference in a new issue