blob: bbd5b4825660ee59c3b8b4b177ca9062ddb447a8 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
import { Component, ReactElement } from 'react';
import { inject, observer } from 'mobx-react';
import { StoresProps } from 'src/@types/ferdium-components.types';
import Welcome from '../../components/auth/Welcome';
class WelcomeScreen extends Component<StoresProps> {
render(): ReactElement {
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));
|