diff options
author | muhamedsalih-tw <104364298+muhamedsalih-tw@users.noreply.github.com> | 2022-11-16 23:30:39 +0530 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-11-16 18:00:39 +0000 |
commit | eb7b2481f631cec5953265eef4ebc3f2fa7e496a (patch) | |
tree | 419d4413f90ece77c0a2204b40948f1a158793d5 /src/containers/auth/ImportScreen.tsx | |
parent | 6.2.1-nightly.44 [skip ci] (diff) | |
download | ferdium-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.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)); | ||