mirror of
https://github.com/utopia-os/utopia-ui.git
synced 2026-02-06 09:55:47 +00:00
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 <noreply@anthropic.com>
This commit is contained in:
parent
e953812ff2
commit
bdd8bc4fc1
@ -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<HTMLInputElement>) => {
|
||||
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<HTMLInputElement>) => {
|
||||
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) {
|
||||
></path>
|
||||
</svg>
|
||||
<span>
|
||||
Please use your existing <Link to="https://community.oceannomads.co/">Ocean Nomads Community</Link> email address to request or reset your password.
|
||||
Please use your existing{' '}
|
||||
<Link to='https://community.oceannomads.co/'>Ocean Nomads Community</Link> email
|
||||
address to request or reset your password.
|
||||
</span>
|
||||
</div>
|
||||
<Link to='/reset-password' className='tw:w-full'>
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user