diff options
author | 2021-11-12 03:59:35 +0100 | |
---|---|---|
committer | 2021-11-12 08:29:35 +0530 | |
commit | 53937fd58023ef800bd8ca1cd2b6d2d7bc891834 (patch) | |
tree | ea70778761addfaba1732dcb515dabd9f37f09ea /src/components/auth/Login.js | |
parent | Use forked version of 'node-mac-permissions' till the PR gets merged (#2216) (diff) | |
download | ferdium-app-53937fd58023ef800bd8ca1cd2b6d2d7bc891834.tar.gz ferdium-app-53937fd58023ef800bd8ca1cd2b6d2d7bc891834.tar.zst ferdium-app-53937fd58023ef800bd8ca1cd2b6d2d7bc891834.zip |
chore: update eslint deps to latest (#2213)
- update eslint deps to latest
- disable new react/function-component-definition rule
- fix/disable newly reported issues
Diffstat (limited to 'src/components/auth/Login.js')
-rw-r--r-- | src/components/auth/Login.js | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/src/components/auth/Login.js b/src/components/auth/Login.js index 956205258..0c327d67e 100644 --- a/src/components/auth/Login.js +++ b/src/components/auth/Login.js | |||
@@ -105,8 +105,6 @@ class Login extends Component { | |||
105 | this.props.intl, | 105 | this.props.intl, |
106 | ); | 106 | ); |
107 | 107 | ||
108 | emailField = null; | ||
109 | |||
110 | submit(e) { | 108 | submit(e) { |
111 | e.preventDefault(); | 109 | e.preventDefault(); |
112 | this.form.submit({ | 110 | this.form.submit({ |
@@ -155,13 +153,7 @@ class Login extends Component { | |||
155 | {intl.formatMessage(messages.serverLogout)} | 153 | {intl.formatMessage(messages.serverLogout)} |
156 | </p> | 154 | </p> |
157 | )} | 155 | )} |
158 | <Input | 156 | <Input field={form.$('email')} focus /> |
159 | field={form.$('email')} | ||
160 | ref={element => { | ||
161 | this.emailField = element; | ||
162 | }} | ||
163 | focus | ||
164 | /> | ||
165 | <Input field={form.$('password')} showPasswordToggle /> | 157 | <Input field={form.$('password')} showPasswordToggle /> |
166 | {error.code === 'invalid-credentials' && ( | 158 | {error.code === 'invalid-credentials' && ( |
167 | <> | 159 | <> |