From 36ebd91f07352f7e533cbdfad73c256e9e1dfb58 Mon Sep 17 00:00:00 2001 From: "J. Ryan Stinnett" Date: Wed, 23 Jan 2019 09:10:49 -0600 Subject: [PATCH] Move language selector to auth header --- src/components/structures/auth/ForgotPassword.js | 3 --- src/components/structures/auth/Login.js | 3 --- src/components/structures/auth/Registration.js | 3 --- src/components/views/auth/AuthHeader.js | 2 ++ 4 files changed, 2 insertions(+), 9 deletions(-) diff --git a/src/components/structures/auth/ForgotPassword.js b/src/components/structures/auth/ForgotPassword.js index 87e8c7d131..b2dc2a47eb 100644 --- a/src/components/structures/auth/ForgotPassword.js +++ b/src/components/structures/auth/ForgotPassword.js @@ -234,8 +234,6 @@ module.exports = React.createClass({ errorText =
{ err }
; } - const LanguageSelector = sdk.getComponent('structures.auth.LanguageSelector'); - resetPasswordJsx = (
@@ -271,7 +269,6 @@ module.exports = React.createClass({ { _t('Create an account') } -
); diff --git a/src/components/structures/auth/Login.js b/src/components/structures/auth/Login.js index 28bed9af05..28c4a3e960 100644 --- a/src/components/structures/auth/Login.js +++ b/src/components/structures/auth/Login.js @@ -555,8 +555,6 @@ module.exports = React.createClass({ ); } - const LanguageSelector = sdk.getComponent('structures.auth.LanguageSelector'); - return ( @@ -569,7 +567,6 @@ module.exports = React.createClass({ { _t('Create an account') } { loginAsGuestJsx } - ); diff --git a/src/components/structures/auth/Registration.js b/src/components/structures/auth/Registration.js index fe6fb078e3..fb913b22e1 100644 --- a/src/components/structures/auth/Registration.js +++ b/src/components/structures/auth/Registration.js @@ -471,8 +471,6 @@ module.exports = React.createClass({ ); } - const LanguageSelector = sdk.getComponent('structures.auth.LanguageSelector'); - return ( ); diff --git a/src/components/views/auth/AuthHeader.js b/src/components/views/auth/AuthHeader.js index c1d831a70a..cc70d126e8 100644 --- a/src/components/views/auth/AuthHeader.js +++ b/src/components/views/auth/AuthHeader.js @@ -25,10 +25,12 @@ module.exports = React.createClass({ render: function() { const AuthHeaderLogo = sdk.getComponent('auth.AuthHeaderLogo'); + const LanguageSelector = sdk.getComponent('structures.auth.LanguageSelector'); return (
+
); },