MenuItem component typing fix

This commit is contained in:
tmshv committed 2022-09-06 12:54:15 +03:00
1 parent bfaeb00ae1
commit 89d0aa9926
1 file changed
+1 -1
+1 -1
View File
@@ -13,7 +13,7 @@ export const MenuItem: React.FC<MenuItemProps> = props => {
const router = useRouter()
const current = router.asPath === props.href
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 (
<li