diff options
Diffstat (limited to 'src/containers/auth/PasswordScreen.tsx')
-rw-r--r-- | src/containers/auth/PasswordScreen.tsx | 31 |
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 @@ | |||
1 | import { Component } from 'react'; | ||
2 | import { inject, observer } from 'mobx-react'; | ||
3 | import Password from '../../components/auth/Password'; | ||
4 | import UserStore from '../../stores/UserStore'; | ||
5 | |||
6 | interface IProps { | ||
7 | actions: { | ||
8 | user: UserStore, | ||
9 | }, | ||
10 | stores: { | ||
11 | user: UserStore, | ||
12 | } | ||
13 | }; | ||
14 | |||
15 | class 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 | |||
31 | export default inject('stores', 'actions')(observer(PasswordScreen)); | ||