blob: 944d288adeec5b2f5ec29ac54fea9b893d232e32 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
|
import { Component } from 'react';
import { inject, observer } from 'mobx-react';
import Welcome from '../../components/auth/Welcome';
import UserStore from '../../stores/UserStore';
import RecipePreviewsStore from '../../stores/RecipePreviewsStore';
interface IProps {
stores: {
user: UserStore,
recipePreviews: RecipePreviewsStore,
},
};
class WelcomeScreen extends Component<IProps> {
render() {
const { user, recipePreviews } = this.props.stores;
return (
<Welcome
loginRoute={user.loginRoute}
signupRoute={user.signupRoute}
changeServerRoute={user.changeServerRoute}
recipes={recipePreviews.featured}
/>
);
}
}
export default inject('stores', 'actions')(observer(WelcomeScreen));
|