aboutsummaryrefslogtreecommitdiffstats
path: root/src/containers/auth/ImportScreen.tsx
diff options
context:
space:
mode:
authorLibravatar muhamedsalih-tw <104364298+muhamedsalih-tw@users.noreply.github.com>2022-11-16 23:30:39 +0530
committerLibravatar GitHub <noreply@github.com>2022-11-16 18:00:39 +0000
commiteb7b2481f631cec5953265eef4ebc3f2fa7e496a (patch)
tree419d4413f90ece77c0a2204b40948f1a158793d5 /src/containers/auth/ImportScreen.tsx
parent6.2.1-nightly.44 [skip ci] (diff)
downloadferdium-app-eb7b2481f631cec5953265eef4ebc3f2fa7e496a.tar.gz
ferdium-app-eb7b2481f631cec5953265eef4ebc3f2fa7e496a.tar.zst
ferdium-app-eb7b2481f631cec5953265eef4ebc3f2fa7e496a.zip
Transform JSX components to TSX (#755)
* color picker types * Import * SetupAssistant * Services & appear * ServiceWebView * SettingsLayout * ImportantScreen * WorkspaceDrawer * SetupAssistant * chore: update vscode settings * chore: removed stale Import screen component & its tree
Diffstat (limited to 'src/containers/auth/ImportScreen.tsx')
-rw-r--r--src/containers/auth/ImportScreen.tsx25
1 files changed, 0 insertions, 25 deletions
diff --git a/src/containers/auth/ImportScreen.tsx b/src/containers/auth/ImportScreen.tsx
deleted file mode 100644
index 91e985ad5..000000000
--- a/src/containers/auth/ImportScreen.tsx
+++ /dev/null
@@ -1,25 +0,0 @@
1import { Component, ReactElement } from 'react';
2import { inject, observer } from 'mobx-react';
3import { StoresProps } from '../../@types/ferdium-components.types';
4import Import from '../../components/auth/Import';
5
6class ImportScreen extends Component<StoresProps> {
7 render(): ReactElement {
8 const { actions, stores } = this.props;
9
10 if (stores.user.isImportLegacyServicesCompleted) {
11 stores.router.push(stores.user.inviteRoute);
12 }
13
14 return (
15 <Import
16 services={stores.user.legacyServices}
17 onSubmit={actions.user.importLegacyServices}
18 isSubmitting={stores.user.isImportLegacyServicesExecuting}
19 inviteRoute={stores.user.inviteRoute}
20 />
21 );
22 }
23}
24
25export default inject('stores', 'actions')(observer(ImportScreen));