diff options
Diffstat (limited to 'src/containers/auth/SignupScreen.js')
-rw-r--r-- | src/containers/auth/SignupScreen.js | 46 |
1 files changed, 0 insertions, 46 deletions
diff --git a/src/containers/auth/SignupScreen.js b/src/containers/auth/SignupScreen.js deleted file mode 100644 index 3824e47d5..000000000 --- a/src/containers/auth/SignupScreen.js +++ /dev/null | |||
@@ -1,46 +0,0 @@ | |||
1 | import { Component } from 'react'; | ||
2 | import PropTypes from 'prop-types'; | ||
3 | import { inject, observer } from 'mobx-react'; | ||
4 | |||
5 | import Signup from '../../components/auth/Signup'; | ||
6 | import UserStore from '../../stores/UserStore'; | ||
7 | import FeaturesStore from '../../stores/FeaturesStore'; | ||
8 | |||
9 | import { globalError as globalErrorPropType } from '../../prop-types'; | ||
10 | |||
11 | class SignupScreen extends Component { | ||
12 | static propTypes = { | ||
13 | error: globalErrorPropType.isRequired, | ||
14 | }; | ||
15 | |||
16 | onSignup(values) { | ||
17 | const { actions } = this.props; | ||
18 | |||
19 | actions.user.signup(values); | ||
20 | } | ||
21 | |||
22 | render() { | ||
23 | const { stores, error } = this.props; | ||
24 | |||
25 | return ( | ||
26 | <Signup | ||
27 | onSubmit={values => this.onSignup(values)} | ||
28 | isSubmitting={stores.user.signupRequest.isExecuting} | ||
29 | loginRoute={stores.user.loginRoute} | ||
30 | error={error} | ||
31 | /> | ||
32 | ); | ||
33 | } | ||
34 | } | ||
35 | |||
36 | SignupScreen.propTypes = { | ||
37 | actions: PropTypes.shape({ | ||
38 | user: PropTypes.instanceOf(UserStore).isRequired, | ||
39 | }).isRequired, | ||
40 | stores: PropTypes.shape({ | ||
41 | user: PropTypes.instanceOf(UserStore).isRequired, | ||
42 | features: PropTypes.instanceOf(FeaturesStore).isRequired, | ||
43 | }).isRequired, | ||
44 | }; | ||
45 | |||
46 | export default inject('stores', 'actions')(observer(SignupScreen)); | ||