diff options
author | 2022-05-08 21:00:17 -0500 | |
---|---|---|
committer | 2022-05-08 22:19:29 -0400 | |
commit | db25991927e9b74eda2f3a9df5d01908abc04208 (patch) | |
tree | 28b82e6e50512ceecdae4e6d2ddec50f0c7835b5 /src/containers/auth/ImportScreen.js | |
parent | New Crowdin updates (#119) [skip ci] (diff) | |
download | ferdium-app-db25991927e9b74eda2f3a9df5d01908abc04208.tar.gz ferdium-app-db25991927e9b74eda2f3a9df5d01908abc04208.tar.zst ferdium-app-db25991927e9b74eda2f3a9df5d01908abc04208.zip |
Converted some javascript files to typescript
Diffstat (limited to 'src/containers/auth/ImportScreen.js')
-rw-r--r-- | src/containers/auth/ImportScreen.js | 37 |
1 files changed, 0 insertions, 37 deletions
diff --git a/src/containers/auth/ImportScreen.js b/src/containers/auth/ImportScreen.js deleted file mode 100644 index c01c3d355..000000000 --- a/src/containers/auth/ImportScreen.js +++ /dev/null | |||
@@ -1,37 +0,0 @@ | |||
1 | import { Component } from 'react'; | ||
2 | import PropTypes from 'prop-types'; | ||
3 | import { inject, observer } from 'mobx-react'; | ||
4 | import { RouterStore } from 'mobx-react-router'; | ||
5 | import Import from '../../components/auth/Import'; | ||
6 | import UserStore from '../../stores/UserStore'; | ||
7 | |||
8 | class ImportScreen extends Component { | ||
9 | render() { | ||
10 | const { actions, stores } = this.props; | ||
11 | |||
12 | if (stores.user.isImportLegacyServicesCompleted) { | ||
13 | stores.router.push(stores.user.inviteRoute); | ||
14 | } | ||
15 | |||
16 | return ( | ||
17 | <Import | ||
18 | services={stores.user.legacyServices} | ||
19 | onSubmit={actions.user.importLegacyServices} | ||
20 | isSubmitting={stores.user.isImportLegacyServicesExecuting} | ||
21 | inviteRoute={stores.user.inviteRoute} | ||
22 | /> | ||
23 | ); | ||
24 | } | ||
25 | } | ||
26 | |||
27 | ImportScreen.propTypes = { | ||
28 | actions: PropTypes.shape({ | ||
29 | user: PropTypes.instanceOf(UserStore).isRequired, | ||
30 | }).isRequired, | ||
31 | stores: PropTypes.shape({ | ||
32 | user: PropTypes.instanceOf(UserStore).isRequired, | ||
33 | router: PropTypes.instanceOf(RouterStore).isRequired, | ||
34 | }).isRequired, | ||
35 | }; | ||
36 | |||
37 | export default inject('stores', 'actions')(observer(ImportScreen)); | ||