From eb090df052663ebe6f9af57cbefe2445d02a2323 Mon Sep 17 00:00:00 2001 From: zmeyer44 Date: Fri, 27 Oct 2023 14:55:53 -0400 Subject: [PATCH] routes --- app/(app)/_layout/BottomNav.tsx | 10 +++++----- app/(app)/_layout/Sidebar.tsx | 2 +- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/app/(app)/_layout/BottomNav.tsx b/app/(app)/_layout/BottomNav.tsx index b8bdad0..b0403d7 100644 --- a/app/(app)/_layout/BottomNav.tsx +++ b/app/(app)/_layout/BottomNav.tsx @@ -1,3 +1,4 @@ +"use client"; import Link from "next/link"; import { RiHome6Fill, @@ -5,26 +6,25 @@ import { RiQuestionAnswerFill, } from "react-icons/ri"; import { cn } from "@/lib/utils"; +import { usePathname } from "next/navigation"; export default function BottomNav() { + const pathname = usePathname(); const navigationItems = [ { href: "/app", name: "home", icon: RiHome6Fill, - current: true, }, { - href: "", + href: "/explore", name: "explore", icon: RiCompass3Fill, - current: false, }, { href: "", name: "messages", icon: RiQuestionAnswerFill, - current: false, }, ]; return ( @@ -38,7 +38,7 @@ export default function BottomNav() { >