From 9f5f552be1b85ed6dad07f889dca29adcf0cafc0 Mon Sep 17 00:00:00 2001 From: "J. Ryan Stinnett" Date: Wed, 23 Jan 2019 16:10:34 -0600 Subject: [PATCH] Move LanguageSelector to views It's too simple to be called a structure. --- res/css/_components.scss | 2 +- res/css/{structures => views}/auth/_LanguageSelector.scss | 0 src/components/views/auth/AuthHeader.js | 2 +- src/components/{structures => views}/auth/LanguageSelector.js | 0 4 files changed, 2 insertions(+), 2 deletions(-) rename res/css/{structures => views}/auth/_LanguageSelector.scss (100%) rename src/components/{structures => views}/auth/LanguageSelector.js (100%) diff --git a/res/css/_components.scss b/res/css/_components.scss index 133324529b..fed5feb662 100644 --- a/res/css/_components.scss +++ b/res/css/_components.scss @@ -23,7 +23,6 @@ @import "./structures/_UploadBar.scss"; @import "./structures/_UserSettings.scss"; @import "./structures/_ViewSource.scss"; -@import "./structures/auth/_LanguageSelector.scss"; @import "./structures/auth/_Login.scss"; @import "./views/auth/_AuthBody.scss"; @import "./views/auth/_AuthButtons.scss"; @@ -32,6 +31,7 @@ @import "./views/auth/_AuthHeaderLogo.scss"; @import "./views/auth/_AuthPage.scss"; @import "./views/auth/_InteractiveAuthEntryComponents.scss"; +@import "./views/auth/_LanguageSelector.scss"; @import "./views/auth/_ServerConfig.scss"; @import "./views/avatars/_BaseAvatar.scss"; @import "./views/avatars/_MemberStatusMessageAvatar.scss"; diff --git a/res/css/structures/auth/_LanguageSelector.scss b/res/css/views/auth/_LanguageSelector.scss similarity index 100% rename from res/css/structures/auth/_LanguageSelector.scss rename to res/css/views/auth/_LanguageSelector.scss diff --git a/src/components/views/auth/AuthHeader.js b/src/components/views/auth/AuthHeader.js index cc70d126e8..f5e9e44167 100644 --- a/src/components/views/auth/AuthHeader.js +++ b/src/components/views/auth/AuthHeader.js @@ -25,7 +25,7 @@ module.exports = React.createClass({ render: function() { const AuthHeaderLogo = sdk.getComponent('auth.AuthHeaderLogo'); - const LanguageSelector = sdk.getComponent('structures.auth.LanguageSelector'); + const LanguageSelector = sdk.getComponent('views.auth.LanguageSelector'); return (
diff --git a/src/components/structures/auth/LanguageSelector.js b/src/components/views/auth/LanguageSelector.js similarity index 100% rename from src/components/structures/auth/LanguageSelector.js rename to src/components/views/auth/LanguageSelector.js