Move language selector to auth header

This commit is contained in:
J. Ryan Stinnett 2019-01-23 09:10:49 -06:00
parent 103460870a
commit 36ebd91f07
4 changed files with 2 additions and 9 deletions

View file

@ -234,8 +234,6 @@ module.exports = React.createClass({
errorText = <div className="mx_Login_error">{ err }</div>; errorText = <div className="mx_Login_error">{ err }</div>;
} }
const LanguageSelector = sdk.getComponent('structures.auth.LanguageSelector');
resetPasswordJsx = ( resetPasswordJsx = (
<div> <div>
<div className="mx_Login_prompt"> <div className="mx_Login_prompt">
@ -271,7 +269,6 @@ module.exports = React.createClass({
<a className="mx_Login_create" onClick={this.onRegisterClick} href="#"> <a className="mx_Login_create" onClick={this.onRegisterClick} href="#">
{ _t('Create an account') } { _t('Create an account') }
</a> </a>
<LanguageSelector />
</div> </div>
</div> </div>
); );

View file

@ -555,8 +555,6 @@ module.exports = React.createClass({
); );
} }
const LanguageSelector = sdk.getComponent('structures.auth.LanguageSelector');
return ( return (
<AuthPage> <AuthPage>
<AuthHeader /> <AuthHeader />
@ -569,7 +567,6 @@ module.exports = React.createClass({
{ _t('Create an account') } { _t('Create an account') }
</a> </a>
{ loginAsGuestJsx } { loginAsGuestJsx }
<LanguageSelector />
</AuthBody> </AuthBody>
</AuthPage> </AuthPage>
); );

View file

@ -471,8 +471,6 @@ module.exports = React.createClass({
); );
} }
const LanguageSelector = sdk.getComponent('structures.auth.LanguageSelector');
return ( return (
<AuthPage> <AuthPage>
<AuthHeader <AuthHeader
@ -486,7 +484,6 @@ module.exports = React.createClass({
{ registerBody } { registerBody }
{ signIn } { signIn }
{ errorText } { errorText }
<LanguageSelector />
</AuthBody> </AuthBody>
</AuthPage> </AuthPage>
); );

View file

@ -25,10 +25,12 @@ module.exports = React.createClass({
render: function() { render: function() {
const AuthHeaderLogo = sdk.getComponent('auth.AuthHeaderLogo'); const AuthHeaderLogo = sdk.getComponent('auth.AuthHeaderLogo');
const LanguageSelector = sdk.getComponent('structures.auth.LanguageSelector');
return ( return (
<div className="mx_AuthHeader"> <div className="mx_AuthHeader">
<AuthHeaderLogo /> <AuthHeaderLogo />
<LanguageSelector />
</div> </div>
); );
}, },