aboutsummaryrefslogtreecommitdiffstats
path: root/src/containers/auth/AuthLayoutContainer.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/containers/auth/AuthLayoutContainer.js')
-rw-r--r--src/containers/auth/AuthLayoutContainer.js8
1 files changed, 3 insertions, 5 deletions
diff --git a/src/containers/auth/AuthLayoutContainer.js b/src/containers/auth/AuthLayoutContainer.js
index 1f9c1ea61..20b88c500 100644
--- a/src/containers/auth/AuthLayoutContainer.js
+++ b/src/containers/auth/AuthLayoutContainer.js
@@ -24,24 +24,22 @@ export default @inject('stores', 'actions') @observer class AuthLayoutContainer
24 stores, actions, children, location, 24 stores, actions, children, location,
25 } = this.props; 25 } = this.props;
26 const { 26 const {
27 app, features, globalError, settings, 27 app, features, globalError,
28 } = stores; 28 } = stores;
29 29
30 const isLoadingBaseFeatures = features.defaultFeaturesRequest.isExecuting 30 const isLoadingBaseFeatures = features.defaultFeaturesRequest.isExecuting
31 && !features.defaultFeaturesRequest.wasExecuted; 31 && !features.defaultFeaturesRequest.wasExecuted;
32 32
33 const themeType = theme(settings.app.darkMode ? 'dark' : 'default');
34
35 if (isLoadingBaseFeatures) { 33 if (isLoadingBaseFeatures) {
36 return ( 34 return (
37 <ThemeProvider theme={theme(themeType)}> 35 <ThemeProvider theme={stores.ui.theme}>
38 <AppLoader /> 36 <AppLoader />
39 </ThemeProvider> 37 </ThemeProvider>
40 ); 38 );
41 } 39 }
42 40
43 return ( 41 return (
44 <ThemeProvider theme={theme(themeType)}> 42 <ThemeProvider theme={stores.ui.theme}>
45 <AuthLayout 43 <AuthLayout
46 error={globalError.response} 44 error={globalError.response}
47 pathname={location.pathname} 45 pathname={location.pathname}