Skip to content

Commit

Permalink
Resolved merge conflicts
Browse files Browse the repository at this point in the history
  • Loading branch information
quietbits committed Feb 21, 2024
2 parents 1a19c1f + b72f923 commit 7badf45
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 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,11 @@ const secondaryNavLinks: NavLink[] = [

export const MainNav = () => {
const pathname = usePathname();
const searchParams = useSearchParams();

// TODO: remove after testing
console.log(">>> pathname: ", pathname);
console.log(">>> searchParams: ", searchParams.toString());

const isActiveRoute = (link: string) => {
if (link.startsWith("http")) {
Expand Down

0 comments on commit 7badf45

Please sign in to comment.