aboutsummaryrefslogtreecommitdiffstats
path: root/src/containers/auth/WelcomeScreen.tsx
diff options
context:
space:
mode:
Diffstat (limited to 'src/containers/auth/WelcomeScreen.tsx')
-rw-r--r--src/containers/auth/WelcomeScreen.tsx30
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 @@
1import { Component } from 'react';
2import { inject, observer } from 'mobx-react';
3
4import Welcome from '../../components/auth/Welcome';
5import UserStore from '../../stores/UserStore';
6import RecipePreviewsStore from '../../stores/RecipePreviewsStore';
7
8interface IProps {
9 stores: {
10 user: UserStore,
11 recipePreviews: RecipePreviewsStore,
12 },
13};
14
15class 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
30export default inject('stores', 'actions')(observer(WelcomeScreen));