diff options
author | 2022-11-17 05:45:39 +0530 | |
---|---|---|
committer | 2022-11-17 00:15:39 +0000 | |
commit | d9502c7516bc2d4ae467c6ea8a2e4816b0885f37 (patch) | |
tree | b339c587a5529ac26d52cfc12d9972a8a00255e6 /src/components/auth | |
parent | Transform JSX components to TSX (#755) (diff) | |
download | ferdium-app-d9502c7516bc2d4ae467c6ea8a2e4816b0885f37.tar.gz ferdium-app-d9502c7516bc2d4ae467c6ea8a2e4816b0885f37.tar.zst ferdium-app-d9502c7516bc2d4ae467c6ea8a2e4816b0885f37.zip |
Transfrom workspace components to ts (#775)
Diffstat (limited to 'src/components/auth')
-rw-r--r-- | src/components/auth/AuthLayout.tsx | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/src/components/auth/AuthLayout.tsx b/src/components/auth/AuthLayout.tsx index 527c2bb74..eeb93b83b 100644 --- a/src/components/auth/AuthLayout.tsx +++ b/src/components/auth/AuthLayout.tsx | |||
@@ -8,7 +8,7 @@ import { observer } from 'mobx-react'; | |||
8 | import { TitleBar } from 'electron-react-titlebar/renderer'; | 8 | import { TitleBar } from 'electron-react-titlebar/renderer'; |
9 | import { injectIntl, WrappedComponentProps } from 'react-intl'; | 9 | import { injectIntl, WrappedComponentProps } from 'react-intl'; |
10 | import { mdiFlash } from '@mdi/js'; | 10 | import { mdiFlash } from '@mdi/js'; |
11 | import { GlobalError } from '../../@types/ferdium-components.types'; | 11 | import { Response } from 'electron'; |
12 | import Link from '../ui/Link'; | 12 | import Link from '../ui/Link'; |
13 | import InfoBar from '../ui/InfoBar'; | 13 | import InfoBar from '../ui/InfoBar'; |
14 | import { Component as PublishDebugInfo } from '../../features/publishDebugInfo'; | 14 | import { Component as PublishDebugInfo } from '../../features/publishDebugInfo'; |
@@ -22,7 +22,7 @@ import { serverName } from '../../api/apiBase'; | |||
22 | 22 | ||
23 | export interface IProps extends WrappedComponentProps { | 23 | export interface IProps extends WrappedComponentProps { |
24 | children: ReactElement; | 24 | children: ReactElement; |
25 | error: GlobalError; | 25 | error: Response; |
26 | isOnline: boolean; | 26 | isOnline: boolean; |
27 | isAPIHealthy: boolean; | 27 | isAPIHealthy: boolean; |
28 | retryHealthCheck: MouseEventHandler<HTMLButtonElement>; | 28 | retryHealthCheck: MouseEventHandler<HTMLButtonElement>; |
@@ -106,9 +106,7 @@ class AuthLayout extends Component<IProps, IState> { | |||
106 | )} | 106 | )} |
107 | <div className="auth__layout"> | 107 | <div className="auth__layout"> |
108 | {/* Inject globalError into children */} | 108 | {/* Inject globalError into children */} |
109 | {cloneElement(children, { | 109 | {cloneElement(children, { error })} |
110 | error, | ||
111 | })} | ||
112 | </div> | 110 | </div> |
113 | {/* </div> */} | 111 | {/* </div> */} |
114 | <Link | 112 | <Link |