diff options
Diffstat (limited to 'src/containers/auth/AuthLayoutContainer.js')
-rw-r--r-- | src/containers/auth/AuthLayoutContainer.js | 19 |
1 files changed, 10 insertions, 9 deletions
diff --git a/src/containers/auth/AuthLayoutContainer.js b/src/containers/auth/AuthLayoutContainer.js index f362b1800..b73598f3d 100644 --- a/src/containers/auth/AuthLayoutContainer.js +++ b/src/containers/auth/AuthLayoutContainer.js | |||
@@ -9,8 +9,7 @@ import AppLoader from '../../components/ui/AppLoader'; | |||
9 | 9 | ||
10 | import { oneOrManyChildElements } from '../../prop-types'; | 10 | import { oneOrManyChildElements } from '../../prop-types'; |
11 | 11 | ||
12 | @inject('stores', 'actions') @observer | 12 | export default @inject('stores', 'actions') @observer class AuthLayoutContainer extends Component { |
13 | export default class AuthLayoutContainer extends Component { | ||
14 | static propTypes = { | 13 | static propTypes = { |
15 | children: oneOrManyChildElements.isRequired, | 14 | children: oneOrManyChildElements.isRequired, |
16 | location: PropTypes.shape({ | 15 | location: PropTypes.shape({ |
@@ -20,10 +19,10 @@ export default class AuthLayoutContainer extends Component { | |||
20 | 19 | ||
21 | render() { | 20 | render() { |
22 | const { stores, actions, children, location } = this.props; | 21 | const { stores, actions, children, location } = this.props; |
23 | const { features } = stores; | 22 | const { app, features, globalError } = stores; |
24 | 23 | ||
25 | const isLoadingBaseFeatures = features.baseFeaturesRequest.isExecuting | 24 | const isLoadingBaseFeatures = features.defaultFeaturesRequest.isExecuting |
26 | && !features.baseFeaturesRequest.wasExecuted; | 25 | && !features.defaultFeaturesRequest.wasExecuted; |
27 | 26 | ||
28 | if (isLoadingBaseFeatures) { | 27 | if (isLoadingBaseFeatures) { |
29 | return ( | 28 | return ( |
@@ -33,12 +32,14 @@ export default class AuthLayoutContainer extends Component { | |||
33 | 32 | ||
34 | return ( | 33 | return ( |
35 | <AuthLayout | 34 | <AuthLayout |
36 | error={stores.globalError.response} | 35 | error={globalError.response} |
37 | pathname={location.pathname} | 36 | pathname={location.pathname} |
38 | isOnline={stores.app.isOnline} | 37 | isOnline={app.isOnline} |
39 | isAPIHealthy={!stores.app.healthCheckRequest.isError} | 38 | isAPIHealthy={!app.healthCheckRequest.isError} |
40 | retryHealthCheck={actions.app.healthCheck} | 39 | retryHealthCheck={actions.app.healthCheck} |
41 | isHealthCheckLoading={stores.app.healthCheckRequest.isExecuting} | 40 | isHealthCheckLoading={app.healthCheckRequest.isExecuting} |
41 | isFullScreen={app.isFullScreen} | ||
42 | darkMode={app.isSystemDarkModeEnabled} | ||
42 | > | 43 | > |
43 | {children} | 44 | {children} |
44 | </AuthLayout> | 45 | </AuthLayout> |