diff options
author | 2022-11-01 06:42:12 +0530 | |
---|---|---|
committer | 2022-11-01 01:12:12 +0000 | |
commit | 85d1aac4cd70e79d5ab64684dea09e92b17ed2c2 (patch) | |
tree | a006a2eb5c58b9351219d8a85d57a04c5c73787a /src/containers/auth/LoginScreen.tsx | |
parent | refactor: convert global app to typescript (#723) (diff) | |
download | ferdium-app-85d1aac4cd70e79d5ab64684dea09e92b17ed2c2.tar.gz ferdium-app-85d1aac4cd70e79d5ab64684dea09e92b17ed2c2.tar.zst ferdium-app-85d1aac4cd70e79d5ab64684dea09e92b17ed2c2.zip |
Transform ChangeServer components tree to typescript (#725)
Diffstat (limited to 'src/containers/auth/LoginScreen.tsx')
-rw-r--r-- | src/containers/auth/LoginScreen.tsx | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/containers/auth/LoginScreen.tsx b/src/containers/auth/LoginScreen.tsx index c4782d287..100736d19 100644 --- a/src/containers/auth/LoginScreen.tsx +++ b/src/containers/auth/LoginScreen.tsx | |||
@@ -6,7 +6,7 @@ import { | |||
6 | } from '../../@types/ferdium-components.types'; | 6 | } from '../../@types/ferdium-components.types'; |
7 | import Login from '../../components/auth/Login'; | 7 | import Login from '../../components/auth/Login'; |
8 | 8 | ||
9 | interface IProps extends Partial<StoresProps> { | 9 | interface IProps extends StoresProps { |
10 | error: GlobalError; | 10 | error: GlobalError; |
11 | } | 11 | } |
12 | 12 | ||
@@ -17,14 +17,14 @@ class LoginScreen extends Component<IProps> { | |||
17 | const { actions, stores, error } = this.props; | 17 | const { actions, stores, error } = this.props; |
18 | return ( | 18 | return ( |
19 | <Login | 19 | <Login |
20 | onSubmit={actions!.user.login} | 20 | onSubmit={actions.user.login} |
21 | isSubmitting={stores!.user.loginRequest.isExecuting} | 21 | isSubmitting={stores.user.loginRequest.isExecuting} |
22 | isTokenExpired={stores!.user.isTokenExpired} | 22 | isTokenExpired={stores.user.isTokenExpired} |
23 | isServerLogout={ | 23 | isServerLogout={ |
24 | stores!.user.logoutReason === stores!.user.logoutReasonTypes.SERVER | 24 | stores.user.logoutReason === stores.user.logoutReasonTypes.SERVER |
25 | } | 25 | } |
26 | signupRoute={stores!.user.signupRoute} | 26 | signupRoute={stores.user.signupRoute} |
27 | passwordRoute={stores!.user.passwordRoute} | 27 | passwordRoute={stores.user.passwordRoute} |
28 | error={error} | 28 | error={error} |
29 | /> | 29 | /> |
30 | ); | 30 | ); |