aboutsummaryrefslogtreecommitdiffstats
path: root/src/components
diff options
context:
space:
mode:
authorLibravatar muhamedsalih-tw <104364298+muhamedsalih-tw@users.noreply.github.com>2022-11-17 05:45:39 +0530
committerLibravatar GitHub <noreply@github.com>2022-11-17 00:15:39 +0000
commitd9502c7516bc2d4ae467c6ea8a2e4816b0885f37 (patch)
treeb339c587a5529ac26d52cfc12d9972a8a00255e6 /src/components
parentTransform JSX components to TSX (#755) (diff)
downloadferdium-app-d9502c7516bc2d4ae467c6ea8a2e4816b0885f37.tar.gz
ferdium-app-d9502c7516bc2d4ae467c6ea8a2e4816b0885f37.tar.zst
ferdium-app-d9502c7516bc2d4ae467c6ea8a2e4816b0885f37.zip
Transfrom workspace components to ts (#775)
Diffstat (limited to 'src/components')
-rw-r--r--src/components/auth/AuthLayout.tsx8
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';
8import { TitleBar } from 'electron-react-titlebar/renderer'; 8import { TitleBar } from 'electron-react-titlebar/renderer';
9import { injectIntl, WrappedComponentProps } from 'react-intl'; 9import { injectIntl, WrappedComponentProps } from 'react-intl';
10import { mdiFlash } from '@mdi/js'; 10import { mdiFlash } from '@mdi/js';
11import { GlobalError } from '../../@types/ferdium-components.types'; 11import { Response } from 'electron';
12import Link from '../ui/Link'; 12import Link from '../ui/Link';
13import InfoBar from '../ui/InfoBar'; 13import InfoBar from '../ui/InfoBar';
14import { Component as PublishDebugInfo } from '../../features/publishDebugInfo'; 14import { Component as PublishDebugInfo } from '../../features/publishDebugInfo';
@@ -22,7 +22,7 @@ import { serverName } from '../../api/apiBase';
22 22
23export interface IProps extends WrappedComponentProps { 23export 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