MenuItem component typing fix
This commit is contained in:
1 parent
bfaeb00ae1
commit
89d0aa9926
1 file changed
+1
-1
@@ -13,7 +13,7 @@ export const MenuItem: React.FC<MenuItemProps> = props => {
|
|||||||
const router = useRouter()
|
const router = useRouter()
|
||||||
const current = router.asPath === props.href
|
const current = router.asPath === props.href
|
||||||
const selected = current || (!ignore.includes(props.href) && isPartOfPath(props.href, router.asPath))
|
const selected = current || (!ignore.includes(props.href) && isPartOfPath(props.href, router.asPath))
|
||||||
const href = current ? null : props.href
|
const href = current ? undefined : props.href
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<li
|
<li
|
||||||
|
|||||||
Reference in new issue
Block a user