We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2e2b8e6 commit 0eb79e7Copy full SHA for 0eb79e7
1 file changed
src/components/navbar/navbar.tsx
@@ -6,7 +6,7 @@ import NextLink from "next/link"
6
import { Button } from "nextra/components"
7
import { useFSRoute } from "nextra/hooks"
8
import type * as normalizePages from "nextra/normalize-pages"
9
-import {
+import React, {
10
useCallback,
11
useEffect,
12
type ReactElement,
@@ -55,8 +55,11 @@ function NavbarMenu({
55
target={item.newWindow ? "_blank" : undefined}
56
className="block py-3.5 pl-2 pr-9"
57
closeOnClick
58
- render={(linkProps, state) => (
59
- <Anchor {...linkProps}>
+ render={(
+ props: React.ComponentPropsWithoutRef<"a">,
60
+ state: NavigationMenu.Link.State,
61
+ ) => (
62
+ <Anchor {...props} href={props.href!}>
63
<span
64
className={clsx(
65
"typography-menu px-3 py-1 underline-offset-2 hover:underline focus-visible:underline",
0 commit comments