diff --git a/components/landing-page/landing-site-nav.tsx b/components/landing-page/landing-site-nav.tsx index 07136a7..fa8b976 100644 --- a/components/landing-page/landing-site-nav.tsx +++ b/components/landing-page/landing-site-nav.tsx @@ -24,7 +24,9 @@ import { const LANDING_SECTION_IDS = new Set(["products", "services"]); function scrollToSectionId(id: string) { - document.getElementById(id)?.scrollIntoView({ behavior: "smooth", block: "start" }); + document + .getElementById(id) + ?.scrollIntoView({ behavior: "smooth", block: "start" }); } export type LandingSiteNavProps = { @@ -46,6 +48,7 @@ export default function LandingSiteNav({ const router = useRouter(); const [open, setOpen] = useState(false); const [openKonten, setOpenKonten] = useState(false); + const [activeMenu, setActiveMenu] = useState(null); useEffect(() => { if (pathname !== "/") return; @@ -77,6 +80,26 @@ export default function LandingSiteNav({ } }; + function MenuItem({ + icon, + label, + onClick, + }: { + icon: React.ReactNode; + label: string; + onClick?: () => void; + }) { + return ( +
+ {icon} + {label} +
+ ); + } + const searchField = (
+ ); } diff --git a/components/landing-page/retracting-sidedar.tsx b/components/landing-page/retracting-sidedar.tsx index 67b4994..bc515e9 100644 --- a/components/landing-page/retracting-sidedar.tsx +++ b/components/landing-page/retracting-sidedar.tsx @@ -402,9 +402,6 @@ const SidebarContent = ({
{section.items?.map((item: any) => { - // ============================= - // ITEM WITH CHILDREN (ACCORDION) - // ============================= if (item.children) { const isExpanded = openMenus.includes(item.title);