diff options
author | 2022-05-08 21:00:17 -0500 | |
---|---|---|
committer | 2022-05-08 22:19:29 -0400 | |
commit | db25991927e9b74eda2f3a9df5d01908abc04208 (patch) | |
tree | 28b82e6e50512ceecdae4e6d2ddec50f0c7835b5 /src/containers/auth/WelcomeScreen.js | |
parent | New Crowdin updates (#119) [skip ci] (diff) | |
download | ferdium-app-db25991927e9b74eda2f3a9df5d01908abc04208.tar.gz ferdium-app-db25991927e9b74eda2f3a9df5d01908abc04208.tar.zst ferdium-app-db25991927e9b74eda2f3a9df5d01908abc04208.zip |
Converted some javascript files to typescript
Diffstat (limited to 'src/containers/auth/WelcomeScreen.js')
-rw-r--r-- | src/containers/auth/WelcomeScreen.js | 31 |
1 files changed, 0 insertions, 31 deletions
diff --git a/src/containers/auth/WelcomeScreen.js b/src/containers/auth/WelcomeScreen.js deleted file mode 100644 index 7e1a7a83e..000000000 --- a/src/containers/auth/WelcomeScreen.js +++ /dev/null | |||
@@ -1,31 +0,0 @@ | |||
1 | import { Component } from 'react'; | ||
2 | import PropTypes from 'prop-types'; | ||
3 | import { inject, observer } from 'mobx-react'; | ||
4 | |||
5 | import Welcome from '../../components/auth/Welcome'; | ||
6 | import UserStore from '../../stores/UserStore'; | ||
7 | import RecipePreviewsStore from '../../stores/RecipePreviewsStore'; | ||
8 | |||
9 | class WelcomeScreen extends Component { | ||
10 | render() { | ||
11 | const { user, recipePreviews } = this.props.stores; | ||
12 | |||
13 | return ( | ||
14 | <Welcome | ||
15 | loginRoute={user.loginRoute} | ||
16 | signupRoute={user.signupRoute} | ||
17 | changeServerRoute={user.changeServerRoute} | ||
18 | recipes={recipePreviews.featured} | ||
19 | /> | ||
20 | ); | ||
21 | } | ||
22 | } | ||
23 | |||
24 | WelcomeScreen.propTypes = { | ||
25 | stores: PropTypes.shape({ | ||
26 | user: PropTypes.instanceOf(UserStore).isRequired, | ||
27 | recipePreviews: PropTypes.instanceOf(RecipePreviewsStore).isRequired, | ||
28 | }).isRequired, | ||
29 | }; | ||
30 | |||
31 | export default inject('stores', 'actions')(observer(WelcomeScreen)); | ||