diff options
Diffstat (limited to 'src/containers/auth/WelcomeScreen.tsx')
-rw-r--r-- | src/containers/auth/WelcomeScreen.tsx | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/src/containers/auth/WelcomeScreen.tsx b/src/containers/auth/WelcomeScreen.tsx new file mode 100644 index 000000000..944d288ad --- /dev/null +++ b/src/containers/auth/WelcomeScreen.tsx | |||
@@ -0,0 +1,30 @@ | |||
1 | import { Component } from 'react'; | ||
2 | import { inject, observer } from 'mobx-react'; | ||
3 | |||
4 | import Welcome from '../../components/auth/Welcome'; | ||
5 | import UserStore from '../../stores/UserStore'; | ||
6 | import RecipePreviewsStore from '../../stores/RecipePreviewsStore'; | ||
7 | |||
8 | interface IProps { | ||
9 | stores: { | ||
10 | user: UserStore, | ||
11 | recipePreviews: RecipePreviewsStore, | ||
12 | }, | ||
13 | }; | ||
14 | |||
15 | class WelcomeScreen extends Component<IProps> { | ||
16 | render() { | ||
17 | const { user, recipePreviews } = this.props.stores; | ||
18 | |||
19 | return ( | ||
20 | <Welcome | ||
21 | loginRoute={user.loginRoute} | ||
22 | signupRoute={user.signupRoute} | ||
23 | changeServerRoute={user.changeServerRoute} | ||
24 | recipes={recipePreviews.featured} | ||
25 | /> | ||
26 | ); | ||
27 | } | ||
28 | } | ||
29 | |||
30 | export default inject('stores', 'actions')(observer(WelcomeScreen)); | ||