diff options
author | 2022-10-25 12:51:28 +0530 | |
---|---|---|
committer | 2022-10-25 07:21:28 +0000 | |
commit | f79727a8632490f11c1423773fdd6adfb6337a7b (patch) | |
tree | a80943f4e4e571359c8104341a3957f6e763dce4 /src/containers/auth | |
parent | add balajiv113 as a contributor for code (#701) [skip ci] (diff) | |
download | ferdium-app-f79727a8632490f11c1423773fdd6adfb6337a7b.tar.gz ferdium-app-f79727a8632490f11c1423773fdd6adfb6337a7b.tar.zst ferdium-app-f79727a8632490f11c1423773fdd6adfb6337a7b.zip |
Transform 'AuthLayoutContainer' component hierarchy to tsx (#699)
Co-authored-by: Muhamed <>
Co-authored-by: Vijay A <vraravam@users.noreply.github.com>
Diffstat (limited to 'src/containers/auth')
-rw-r--r-- | src/containers/auth/AuthLayoutContainer.tsx | 10 |
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'; | |||
2 | import { inject, observer } from 'mobx-react'; | 2 | import { inject, observer } from 'mobx-react'; |
3 | import { ThemeProvider } from 'react-jss'; | 3 | import { ThemeProvider } from 'react-jss'; |
4 | import { Outlet } from 'react-router-dom'; | 4 | import { Outlet } from 'react-router-dom'; |
5 | |||
6 | import { StoresProps } from '../../@types/ferdium-components.types'; | 5 | import { StoresProps } from '../../@types/ferdium-components.types'; |
7 | import AuthLayout from '../../components/auth/AuthLayout'; | 6 | import AuthLayout from '../../components/auth/AuthLayout'; |
8 | import AppLoader from '../../components/ui/AppLoader'; | 7 | import AppLoader from '../../components/ui/AppLoader'; |
9 | 8 | ||
10 | interface AuthLayoutContainerProps extends StoresProps {} | 9 | interface IProps extends StoresProps {} |
11 | 10 | ||
12 | class AuthLayoutContainer extends Component<AuthLayoutContainerProps> { | 11 | @inject('stores', 'actions') |
12 | @observer | ||
13 | class 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 | ||
61 | export default inject('stores', 'actions')(observer(AuthLayoutContainer)); | 61 | export default AuthLayoutContainer; |