diff --git a/src/app/admin-dashboard/components/AdminDashboardSidebar.tsx b/src/app/admin-dashboard/components/AdminDashboardSidebar.tsx index a4d8292..65e139a 100644 --- a/src/app/admin-dashboard/components/AdminDashboardSidebar.tsx +++ b/src/app/admin-dashboard/components/AdminDashboardSidebar.tsx @@ -1,3 +1,4 @@ +import { DirectionAnimation } from "@/motion/Animation"; import Image from "next/image"; import Link from "next/link"; import { usePathname } from "next/navigation"; @@ -6,6 +7,7 @@ interface NavItem { href: string; icon: string; // now this is a string path label: string; + id: number; // className?: string; } @@ -14,21 +16,26 @@ const navItems: NavItem[] = [ href: "/admin-dashboard", icon: "/svg/dashboardIcon.svg", label: "Dashboard", + id: 1, }, { href: "/admin-dashboard/plans", icon: "/svg/plansIcon.svg", // "bg-[#1E0B40] border border-[#807F8D]" label: "Plans", + id: 2, }, { href: "/admin-dashboard/claims", icon: "/svg/claimsIcons.svg", label: "Claims", - }, { + id: 3, + }, + { href: "/admin-dashboard/support", icon: "/svg/supportIcon.svg", label: "Support", - } + id: 4, + }, ]; export default function AdminDashboardSidebar({ @@ -38,11 +45,14 @@ export default function AdminDashboardSidebar({ sidebarOpen: boolean; setSidebarOpen: any; }) { - const pathname = usePathname(); return ( -