diff options
author | Ricardo Cino <ricardo@cino.io> | 2022-06-26 23:59:32 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-06-26 21:59:32 +0000 |
commit | 6bff2bb5439d25e0ab2a24a8ca1b28b89ef40ff9 (patch) | |
tree | 1676f5eef42b8086d28476c7eaad62c7b1753120 /src/containers/auth/ImportScreen.tsx | |
parent | Reduce tab item layout shift (#376) (diff) | |
download | ferdium-app-6bff2bb5439d25e0ab2a24a8ca1b28b89ef40ff9.tar.gz ferdium-app-6bff2bb5439d25e0ab2a24a8ca1b28b89ef40ff9.tar.zst ferdium-app-6bff2bb5439d25e0ab2a24a8ca1b28b89ef40ff9.zip |
chore: turned all auth containers into typescript (#375)
Diffstat (limited to 'src/containers/auth/ImportScreen.tsx')
-rw-r--r-- | src/containers/auth/ImportScreen.tsx | 19 |
1 files changed, 4 insertions, 15 deletions
diff --git a/src/containers/auth/ImportScreen.tsx b/src/containers/auth/ImportScreen.tsx index 8d318cb2d..c128dec14 100644 --- a/src/containers/auth/ImportScreen.tsx +++ b/src/containers/auth/ImportScreen.tsx | |||
@@ -1,21 +1,10 @@ | |||
1 | import { Component } from 'react'; | 1 | import { Component, ReactElement } from 'react'; |
2 | import { inject, observer } from 'mobx-react'; | 2 | import { inject, observer } from 'mobx-react'; |
3 | import { RouterStore } from 'mobx-react-router'; | 3 | import { DefaultProps } from 'src/@types/ferdium-components.types'; |
4 | import { UserStore } from 'src/stores.types'; | ||
5 | import Import from '../../components/auth/Import'; | 4 | import Import from '../../components/auth/Import'; |
6 | 5 | ||
7 | interface IProps { | 6 | class ImportScreen extends Component<DefaultProps> { |
8 | actions: { | 7 | render(): ReactElement { |
9 | user: UserStore; | ||
10 | }; | ||
11 | stores: { | ||
12 | user: UserStore; | ||
13 | router: RouterStore; | ||
14 | }; | ||
15 | } | ||
16 | |||
17 | class ImportScreen extends Component<IProps> { | ||
18 | render() { | ||
19 | const { actions, stores } = this.props; | 8 | const { actions, stores } = this.props; |
20 | 9 | ||
21 | if (stores.user.isImportLegacyServicesCompleted) { | 10 | if (stores.user.isImportLegacyServicesCompleted) { |