diff options
Diffstat (limited to 'src/containers/auth/ImportScreen.tsx')
-rw-r--r-- | src/containers/auth/ImportScreen.tsx | 25 |
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 @@ | |||
1 | import { Component, ReactElement } from 'react'; | ||
2 | import { inject, observer } from 'mobx-react'; | ||
3 | import { StoresProps } from '../../@types/ferdium-components.types'; | ||
4 | import Import from '../../components/auth/Import'; | ||
5 | |||
6 | class 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 | |||
25 | export default inject('stores', 'actions')(observer(ImportScreen)); | ||