One more type issue in HeaderItem
This commit is contained in:
@@ -1,9 +1,10 @@
|
|||||||
import Link from "next/link"
|
import Link from "next/link"
|
||||||
|
import type { MouseEventHandler } from "react"
|
||||||
|
|
||||||
type HeaderItemProps = {
|
type HeaderItemProps = {
|
||||||
content: string,
|
content: string,
|
||||||
linkTo: string,
|
linkTo: string,
|
||||||
onClick?: any, // don't even wanna bother
|
onClick?: MouseEventHandler<HTMLButtonElement>, // don't even wanna bother
|
||||||
newWindow?: boolean
|
newWindow?: boolean
|
||||||
}
|
}
|
||||||
export default function HeaderItem(props: HeaderItemProps) {
|
export default function HeaderItem(props: HeaderItemProps) {
|
||||||
|
|||||||
Reference in New Issue
Block a user