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 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
|
||||
|
||||
Reference in new issue
Block a user