From f8d1f92952f463da10cf548b9561a91cb922e6c5 Mon Sep 17 00:00:00 2001 From: fadilkun45 Date: Thu, 24 Sep 2026 10:25:27 +0700 Subject: [PATCH] fix: reset initial active section state in navbar component --- src/app/perubahan-pricing-waba/layout.tsx | 26 ----------------------- src/components/navbar.tsx | 2 +- 2 files changed, 1 insertion(+), 27 deletions(-) delete mode 100644 src/app/perubahan-pricing-waba/layout.tsx diff --git a/src/app/perubahan-pricing-waba/layout.tsx b/src/app/perubahan-pricing-waba/layout.tsx deleted file mode 100644 index d657634..0000000 --- a/src/app/perubahan-pricing-waba/layout.tsx +++ /dev/null @@ -1,26 +0,0 @@ -import { Metadata } from "next"; -import "@/style/globals.css"; -import Logo from "@/image/Logo.svg"; -import Image from "next/image"; - -export const metadata: Metadata = { - title: "Mulia Informasi Teknologi", - description: "Build Fast, Scale Smart", -}; - -export default function RootLayout({ - children, -}: Readonly<{ - children: React.ReactNode; -}>) { - return ( - - -
- logo -
-
{children}
- - - ); -} diff --git a/src/components/navbar.tsx b/src/components/navbar.tsx index 554f90e..332e0f2 100644 --- a/src/components/navbar.tsx +++ b/src/components/navbar.tsx @@ -8,7 +8,7 @@ import { usePathname } from "next/navigation"; export default function Navbar() { const [open, setOpen] = useState(false); - const [activeSection, setActiveSection] = useState("about-us"); + const [activeSection, setActiveSection] = useState(""); const pathname = usePathname(); const isContact = pathname === "/contact"; const active = isContact ? "contact" : activeSection;