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.