aboutsummaryrefslogtreecommitdiffstats
path: root/src/components/auth/Login.tsx
diff options
context:
space:
mode:
Diffstat (limited to 'src/components/auth/Login.tsx')
-rw-r--r--src/components/auth/Login.tsx10
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 @@
1import { Component, FormEvent, ReactElement } from 'react'; 1import { Component, FormEvent, ReactElement } from 'react';
2import { observer, inject } from 'mobx-react'; 2import { observer } from 'mobx-react';
3import { defineMessages, injectIntl, WrappedComponentProps } from 'react-intl'; 3import { defineMessages, injectIntl, WrappedComponentProps } from 'react-intl';
4import { mdiArrowLeftCircle } from '@mdi/js'; 4import { mdiArrowLeftCircle } from '@mdi/js';
5import { noop } from 'lodash'; 5import { noop } from 'lodash';
@@ -13,10 +13,7 @@ import Input from '../ui/Input';
13import Button from '../ui/button'; 13import Button from '../ui/button';
14import Link from '../ui/Link'; 14import Link from '../ui/Link';
15import { H1 } from '../ui/headline'; 15import { H1 } from '../ui/headline';
16import { 16import { GlobalError } from '../../@types/ferdium-components.types';
17 GlobalError,
18 StoresProps,
19} from '../../@types/ferdium-components.types';
20 17
21const messages = defineMessages({ 18const messages = defineMessages({
22 headline: { 19 headline: {
@@ -65,7 +62,7 @@ const messages = defineMessages({
65 }, 62 },
66}); 63});
67 64
68interface IProps extends Partial<StoresProps>, WrappedComponentProps { 65interface 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
81class Login extends Component<IProps> { 77class Login extends Component<IProps> {
82 form: Form; 78 form: Form;