aboutsummaryrefslogtreecommitdiffstats
path: root/src/containers/auth/AuthLayoutContainer.tsx
diff options
context:
space:
mode:
Diffstat (limited to 'src/containers/auth/AuthLayoutContainer.tsx')
-rw-r--r--src/containers/auth/AuthLayoutContainer.tsx10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/containers/auth/AuthLayoutContainer.tsx b/src/containers/auth/AuthLayoutContainer.tsx
index 6fc6713f1..6a1fed0d7 100644
--- a/src/containers/auth/AuthLayoutContainer.tsx
+++ b/src/containers/auth/AuthLayoutContainer.tsx
@@ -2,14 +2,15 @@ import { Component, ReactElement } from 'react';
2import { inject, observer } from 'mobx-react'; 2import { inject, observer } from 'mobx-react';
3import { ThemeProvider } from 'react-jss'; 3import { ThemeProvider } from 'react-jss';
4import { Outlet } from 'react-router-dom'; 4import { Outlet } from 'react-router-dom';
5
6import { StoresProps } from '../../@types/ferdium-components.types'; 5import { StoresProps } from '../../@types/ferdium-components.types';
7import AuthLayout from '../../components/auth/AuthLayout'; 6import AuthLayout from '../../components/auth/AuthLayout';
8import AppLoader from '../../components/ui/AppLoader'; 7import AppLoader from '../../components/ui/AppLoader';
9 8
10interface AuthLayoutContainerProps extends StoresProps {} 9interface IProps extends StoresProps {}
11 10
12class AuthLayoutContainer extends Component<AuthLayoutContainerProps> { 11@inject('stores', 'actions')
12@observer
13class AuthLayoutContainer extends Component<IProps> {
13 render(): ReactElement { 14 render(): ReactElement {
14 const { stores, actions } = this.props; 15 const { stores, actions } = this.props;
15 const { app, features, globalError, user } = stores; 16 const { app, features, globalError, user } = stores;
@@ -39,7 +40,6 @@ class AuthLayoutContainer extends Component<AuthLayoutContainerProps> {
39 <ThemeProvider theme={stores.ui.theme}> 40 <ThemeProvider theme={stores.ui.theme}>
40 <AuthLayout 41 <AuthLayout
41 error={globalError.response} 42 error={globalError.response}
42 pathname={stores.router.location.pathname}
43 isOnline={app.isOnline} 43 isOnline={app.isOnline}
44 isAPIHealthy={!app.healthCheckRequest.isError} 44 isAPIHealthy={!app.healthCheckRequest.isError}
45 retryHealthCheck={actions.app.healthCheck} 45 retryHealthCheck={actions.app.healthCheck}
@@ -58,4 +58,4 @@ class AuthLayoutContainer extends Component<AuthLayoutContainerProps> {
58 } 58 }
59} 59}
60 60
61export default inject('stores', 'actions')(observer(AuthLayoutContainer)); 61export default AuthLayoutContainer;