We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 35370d8 commit 9e4b946Copy full SHA for 9e4b946
src/components/Nav/Menu/index.tsx
@@ -18,6 +18,8 @@ import type { NavSections } from "../types"
18
19
import { useNavMenu } from "./useNavMenu"
20
21
+const MenuContent = dynamic(() => import("./MenuContent"))
22
+
23
type NavMenuProps = BaseHTMLAttributes<HTMLDivElement> & {
24
sections: NavSections
25
}
@@ -26,8 +28,6 @@ const Menu = ({ sections, ...props }: NavMenuProps) => {
26
28
const { activeSection, direction, handleSectionChange, isOpen } =
27
29
useNavMenu(sections)
30
- const MenuContent = dynamic(() => import("./MenuContent"))
-
31
return (
32
<div {...props}>
33
<Root
0 commit comments