aboutsummaryrefslogtreecommitdiffstats
path: root/src/containers/auth/PasswordScreen.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/containers/auth/PasswordScreen.js')
-rw-r--r--src/containers/auth/PasswordScreen.js38
1 files changed, 38 insertions, 0 deletions
diff --git a/src/containers/auth/PasswordScreen.js b/src/containers/auth/PasswordScreen.js
new file mode 100644
index 000000000..d88cb08e6
--- /dev/null
+++ b/src/containers/auth/PasswordScreen.js
@@ -0,0 +1,38 @@
1import React, { Component } from 'react';
2import PropTypes from 'prop-types';
3import { inject, observer } from 'mobx-react';
4import Password from '../../components/auth/Password';
5import UserStore from '../../stores/UserStore';
6import { gaPage } from '../../lib/analytics';
7
8@inject('stores', 'actions') @observer
9export default class PasswordScreen extends Component {
10 componentDidMount() {
11 gaPage('Auth/Password Retrieve');
12 }
13
14 render() {
15 const { actions, stores } = this.props;
16
17 return (
18 <Password
19 onSubmit={actions.user.retrievePassword}
20 isSubmitting={stores.user.passwordRequest.isExecuting}
21 signupRoute={stores.user.signupRoute}
22 loginRoute={stores.user.loginRoute}
23 status={stores.user.actionStatus}
24 />
25 );
26 }
27}
28
29PasswordScreen.wrappedComponent.propTypes = {
30 actions: PropTypes.shape({
31 user: PropTypes.shape({
32 retrievePassword: PropTypes.func.isRequired,
33 }).isRequired,
34 }).isRequired,
35 stores: PropTypes.shape({
36 user: PropTypes.instanceOf(UserStore).isRequired,
37 }).isRequired,
38};