diff options
author | 2022-11-01 06:42:12 +0530 | |
---|---|---|
committer | 2022-11-01 01:12:12 +0000 | |
commit | 85d1aac4cd70e79d5ab64684dea09e92b17ed2c2 (patch) | |
tree | a006a2eb5c58b9351219d8a85d57a04c5c73787a /src/components/auth/Login.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/components/auth/Login.tsx')
-rw-r--r-- | src/components/auth/Login.tsx | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/src/components/auth/Login.tsx b/src/components/auth/Login.tsx index 65381fe04..66a567fe4 100644 --- a/src/components/auth/Login.tsx +++ b/src/components/auth/Login.tsx | |||
@@ -1,5 +1,5 @@ | |||
1 | import { Component, FormEvent, ReactElement } from 'react'; | 1 | import { Component, FormEvent, ReactElement } from 'react'; |
2 | import { observer, inject } from 'mobx-react'; | 2 | import { observer } from 'mobx-react'; |
3 | import { defineMessages, injectIntl, WrappedComponentProps } from 'react-intl'; | 3 | import { defineMessages, injectIntl, WrappedComponentProps } from 'react-intl'; |
4 | import { mdiArrowLeftCircle } from '@mdi/js'; | 4 | import { mdiArrowLeftCircle } from '@mdi/js'; |
5 | import { noop } from 'lodash'; | 5 | import { noop } from 'lodash'; |
@@ -13,10 +13,7 @@ import Input from '../ui/Input'; | |||
13 | import Button from '../ui/button'; | 13 | import Button from '../ui/button'; |
14 | import Link from '../ui/Link'; | 14 | import Link from '../ui/Link'; |
15 | import { H1 } from '../ui/headline'; | 15 | import { H1 } from '../ui/headline'; |
16 | import { | 16 | import { GlobalError } from '../../@types/ferdium-components.types'; |
17 | GlobalError, | ||
18 | StoresProps, | ||
19 | } from '../../@types/ferdium-components.types'; | ||
20 | 17 | ||
21 | const messages = defineMessages({ | 18 | const messages = defineMessages({ |
22 | headline: { | 19 | headline: { |
@@ -65,7 +62,7 @@ const messages = defineMessages({ | |||
65 | }, | 62 | }, |
66 | }); | 63 | }); |
67 | 64 | ||
68 | interface IProps extends Partial<StoresProps>, WrappedComponentProps { | 65 | interface IProps extends WrappedComponentProps { |
69 | onSubmit: (...args: any[]) => void; | 66 | onSubmit: (...args: any[]) => void; |
70 | isSubmitting: boolean; | 67 | isSubmitting: boolean; |
71 | isTokenExpired: boolean; | 68 | isTokenExpired: boolean; |
@@ -76,7 +73,6 @@ interface IProps extends Partial<StoresProps>, WrappedComponentProps { | |||
76 | error: GlobalError; | 73 | error: GlobalError; |
77 | } | 74 | } |
78 | 75 | ||
79 | @inject('actions') | ||
80 | @observer | 76 | @observer |
81 | class Login extends Component<IProps> { | 77 | class Login extends Component<IProps> { |
82 | form: Form; | 78 | form: Form; |