diff options
author | 2022-10-28 07:37:55 +0530 | |
---|---|---|
committer | 2022-10-28 02:07:55 +0000 | |
commit | d95573393206bc3931202d363bfb6c54974e0203 (patch) | |
tree | bd1428342f8d6124f747612a3711546a972108eb /src/containers/auth/WelcomeScreen.tsx | |
parent | 6.2.1-nightly.31 [skip ci] (diff) | |
download | ferdium-app-d95573393206bc3931202d363bfb6c54974e0203.tar.gz ferdium-app-d95573393206bc3931202d363bfb6c54974e0203.tar.zst ferdium-app-d95573393206bc3931202d363bfb6c54974e0203.zip |
Transform welcome component tree to TS (#715)v6.2.1-nightly.31
Diffstat (limited to 'src/containers/auth/WelcomeScreen.tsx')
-rw-r--r-- | src/containers/auth/WelcomeScreen.tsx | 15 |
1 files changed, 11 insertions, 4 deletions
diff --git a/src/containers/auth/WelcomeScreen.tsx b/src/containers/auth/WelcomeScreen.tsx index c03319179..561eef236 100644 --- a/src/containers/auth/WelcomeScreen.tsx +++ b/src/containers/auth/WelcomeScreen.tsx | |||
@@ -1,12 +1,19 @@ | |||
1 | import { Component, ReactElement } from 'react'; | 1 | import { Component, ReactElement } from 'react'; |
2 | import { inject, observer } from 'mobx-react'; | 2 | import { inject, observer } from 'mobx-react'; |
3 | |||
4 | import { StoresProps } from '../../@types/ferdium-components.types'; | 3 | import { StoresProps } from '../../@types/ferdium-components.types'; |
5 | import Welcome from '../../components/auth/Welcome'; | 4 | import Welcome from '../../components/auth/Welcome'; |
6 | 5 | ||
7 | class WelcomeScreen extends Component<StoresProps> { | 6 | interface IProps extends Partial<StoresProps> {} |
7 | |||
8 | @inject('stores', 'actions') | ||
9 | @observer | ||
10 | class WelcomeScreen extends Component<IProps> { | ||
11 | constructor(props: IProps) { | ||
12 | super(props); | ||
13 | } | ||
14 | |||
8 | render(): ReactElement { | 15 | render(): ReactElement { |
9 | const { user, recipePreviews } = this.props.stores; | 16 | const { user, recipePreviews } = this.props.stores!; |
10 | 17 | ||
11 | return ( | 18 | return ( |
12 | <Welcome | 19 | <Welcome |
@@ -19,4 +26,4 @@ class WelcomeScreen extends Component<StoresProps> { | |||
19 | } | 26 | } |
20 | } | 27 | } |
21 | 28 | ||
22 | export default inject('stores', 'actions')(observer(WelcomeScreen)); | 29 | export default WelcomeScreen; |