Skip to content

Commit

Permalink
Add console.log for testing
Browse files Browse the repository at this point in the history
  • Loading branch information
quietbits committed Feb 14, 2024
1 parent 4b44926 commit f644d75
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/components/MainNav.tsx
Original file line number Diff line number Diff line change
@@ -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";
Expand Down Expand Up @@ -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")) {
Expand Down

0 comments on commit f644d75

Please sign in to comment.