aboutsummaryrefslogtreecommitdiffstats
path: root/src/containers/auth/SignupScreen.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/containers/auth/SignupScreen.js')
-rw-r--r--src/containers/auth/SignupScreen.js46
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 @@
1import { Component } from 'react';
2import PropTypes from 'prop-types';
3import { inject, observer } from 'mobx-react';
4
5import Signup from '../../components/auth/Signup';
6import UserStore from '../../stores/UserStore';
7import FeaturesStore from '../../stores/FeaturesStore';
8
9import { globalError as globalErrorPropType } from '../../prop-types';
10
11class 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
36SignupScreen.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
46export default inject('stores', 'actions')(observer(SignupScreen));