aboutsummaryrefslogtreecommitdiffstats
path: root/src/containers/auth/ImportScreen.tsx
diff options
context:
space:
mode:
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));