From f644d753d5f097d0ac088b9b0b53b7cce7605c1c Mon Sep 17 00:00:00 2001 From: Iveta Date: Wed, 14 Feb 2024 13:04:27 -0500 Subject: [PATCH] Add console.log for testing --- src/components/MainNav.tsx | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/components/MainNav.tsx b/src/components/MainNav.tsx index 73729ef6..04bfdf74 100644 --- a/src/components/MainNav.tsx +++ b/src/components/MainNav.tsx @@ -1,4 +1,4 @@ -import { usePathname } from "next/navigation"; +import { usePathname, useSearchParams } from "next/navigation"; import { Routes } from "@/constants/routes"; import { NextLink } from "@/components/NextLink"; @@ -32,6 +32,10 @@ const secondaryNavLinks: NavLink[] = [ export const MainNav = () => { const pathname = usePathname(); + const searchParams = useSearchParams(); + + console.log(">>> pathname: ", pathname); + console.log(">>> searchParams: ", searchParams.toString()); const isActiveRoute = (link: string) => { if (link.startsWith("http")) {