diff options
author | 2022-05-08 21:00:17 -0500 | |
---|---|---|
committer | 2022-05-08 22:19:29 -0400 | |
commit | db25991927e9b74eda2f3a9df5d01908abc04208 (patch) | |
tree | 28b82e6e50512ceecdae4e6d2ddec50f0c7835b5 /src/containers/auth/PasswordScreen.tsx | |
parent | New Crowdin updates (#119) [skip ci] (diff) | |
download | ferdium-app-db25991927e9b74eda2f3a9df5d01908abc04208.tar.gz ferdium-app-db25991927e9b74eda2f3a9df5d01908abc04208.tar.zst ferdium-app-db25991927e9b74eda2f3a9df5d01908abc04208.zip |
Converted some javascript files to typescript
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)); | ||