aboutsummaryrefslogtreecommitdiffstats
path: root/src/containers/auth/PasswordScreen.tsx
diff options
context:
space:
mode:
Diffstat (limited to 'src/containers/auth/PasswordScreen.tsx')
-rw-r--r--src/containers/auth/PasswordScreen.tsx31
1 files changed, 31 insertions, 0 deletions
diff --git a/src/containers/auth/PasswordScreen.tsx b/src/containers/auth/PasswordScreen.tsx
new file mode 100644
index 000000000..864a11fa7
--- /dev/null
+++ b/src/containers/auth/PasswordScreen.tsx
@@ -0,0 +1,31 @@
1import { Component } from 'react';
2import { inject, observer } from 'mobx-react';
3import Password from '../../components/auth/Password';
4import UserStore from '../../stores/UserStore';
5
6interface IProps {
7 actions: {
8 user: UserStore,
9 },
10 stores: {
11 user: UserStore,
12 }
13};
14
15class PasswordScreen extends Component<IProps> {
16 render() {
17 const { actions, stores } = this.props;
18
19 return (
20 <Password
21 onSubmit={actions.user.retrievePassword}
22 isSubmitting={stores.user.passwordRequest.isExecuting}
23 signupRoute={stores.user.signupRoute}
24 loginRoute={stores.user.loginRoute}
25 status={stores.user.actionStatus}
26 />
27 );
28 }
29}
30
31export default inject('stores', 'actions')(observer(PasswordScreen));