mirror of
https://github.com/tuono-labs/tuono
synced 2026-07-25 12:52:47 -07:00
chore(deps-dev): update eslint to v9 (#147)
This commit is contained in:
committed by
GitHub
parent
5fc68a1926
commit
11d425faa9
@@ -1,9 +1,10 @@
|
||||
import * as React from 'react'
|
||||
import { useRouter } from '../hooks/useRouter'
|
||||
import type { AnchorHTMLAttributes, MouseEvent } from 'react'
|
||||
import useRoute from '../hooks/useRoute'
|
||||
import type { AnchorHTMLAttributes } from 'react'
|
||||
import { useInView } from 'react-intersection-observer'
|
||||
|
||||
import { useRouter } from '../hooks/useRouter'
|
||||
import useRoute from '../hooks/useRoute'
|
||||
|
||||
interface TuonoLinkProps {
|
||||
/**
|
||||
* If "true" the route gets loaded when the link enters the viewport. Default "true"
|
||||
@@ -28,7 +29,7 @@ export default function Link(
|
||||
triggerOnce: true,
|
||||
})
|
||||
|
||||
const handleTransition = (e: MouseEvent<HTMLAnchorElement>): void => {
|
||||
const handleTransition: React.MouseEventHandler<HTMLAnchorElement> = (e) => {
|
||||
e.preventDefault()
|
||||
props.onClick?.(e)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user