diff options
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; |