aboutsummaryrefslogtreecommitdiffstats
path: root/src/components/auth
diff options
context:
space:
mode:
authorLibravatar Markus Hatvan <markus_hatvan@aon.at>2021-11-12 03:59:35 +0100
committerLibravatar GitHub <noreply@github.com>2021-11-12 08:29:35 +0530
commit53937fd58023ef800bd8ca1cd2b6d2d7bc891834 (patch)
treeea70778761addfaba1732dcb515dabd9f37f09ea /src/components/auth
parentUse forked version of 'node-mac-permissions' till the PR gets merged (#2216) (diff)
downloadferdium-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')
-rw-r--r--src/components/auth/Invite.js4
-rw-r--r--src/components/auth/Login.js10
2 files changed, 3 insertions, 11 deletions
diff --git a/src/components/auth/Invite.js b/src/components/auth/Invite.js
index f23417870..dd71c2450 100644
--- a/src/components/auth/Invite.js
+++ b/src/components/auth/Invite.js
@@ -125,8 +125,8 @@ class Invite extends Component {
125 .some(emailValue => emailValue.trim() !== ''); 125 .some(emailValue => emailValue.trim() !== '');
126 126
127 const sendButtonClassName = classnames({ 127 const sendButtonClassName = classnames({
128 'auth__button': true, 128 auth__button: true,
129 'invite__embed--button': embed 129 'invite__embed--button': embed,
130 }); 130 });
131 131
132 const renderForm = ( 132 const renderForm = (
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 <>