From bdd8bc4fc127dac49481f32bc4f58522d8fc5bec Mon Sep 17 00:00:00 2001 From: Anton Tranelis Date: Mon, 12 Jan 2026 18:46:59 +0100 Subject: [PATCH] fix(lib): resolve eslint errors in LoginPage - Remove unused React import, use named imports instead - Fix void expression errors by wrapping scrollIntoView in braces - Fix prettier formatting in Link component text Co-Authored-By: Claude Opus 4.5 --- lib/src/Components/Auth/LoginPage.tsx | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) diff --git a/lib/src/Components/Auth/LoginPage.tsx b/lib/src/Components/Auth/LoginPage.tsx index 5eed4c13..8a4f9679 100644 --- a/lib/src/Components/Auth/LoginPage.tsx +++ b/lib/src/Components/Auth/LoginPage.tsx @@ -1,5 +1,5 @@ /* eslint-disable @typescript-eslint/prefer-nullish-coalescing */ -import React, { useCallback, useEffect, useState } from 'react' +import { useCallback, useEffect, useState } from 'react' import { Link, useNavigate } from 'react-router-dom' import { toast } from 'react-toastify' @@ -101,8 +101,10 @@ export function LoginPage({ inviteApi, showRequestPassword }: Props) { onChange={(e) => { setEmail(e.target.value) }} - onFocus={(e: React.FocusEvent) => { - setTimeout(() => e.target.scrollIntoView({ behavior: 'smooth', block: 'center' }), 300) + onFocus={(e) => { + setTimeout(() => { + e.target.scrollIntoView({ behavior: 'smooth', block: 'center' }) + }, 300) }} className='tw:input tw:input-bordered tw:w-full tw:max-w-xs' /> @@ -112,8 +114,10 @@ export function LoginPage({ inviteApi, showRequestPassword }: Props) { onChange={(e) => { setPassword(e.target.value) }} - onFocus={(e: React.FocusEvent) => { - setTimeout(() => e.target.scrollIntoView({ behavior: 'smooth', block: 'center' }), 300) + onFocus={(e) => { + setTimeout(() => { + e.target.scrollIntoView({ behavior: 'smooth', block: 'center' }) + }, 300) }} className='tw:input tw:input-bordered tw:w-full tw:max-w-xs' /> @@ -156,7 +160,9 @@ export function LoginPage({ inviteApi, showRequestPassword }: Props) { > - Please use your existing Ocean Nomads Community email address to request or reset your password. + Please use your existing{' '} + Ocean Nomads Community email + address to request or reset your password.