From 031cd6e2bb5ea656d4015696dadb693e2ac8a810 Mon Sep 17 00:00:00 2001 From: Sentientsoap Date: Tue, 12 Dec 2023 13:05:09 +0100 Subject: [PATCH] added heroicons to nav --- components/Navbar/Navbar.tsx | 19 +++++++++++++++++-- 1 file changed, 17 insertions(+), 2 deletions(-) diff --git a/components/Navbar/Navbar.tsx b/components/Navbar/Navbar.tsx index 3dc7a81..e107932 100644 --- a/components/Navbar/Navbar.tsx +++ b/components/Navbar/Navbar.tsx @@ -1,6 +1,11 @@ "use client" import { - Button, + BriefcaseIcon, + EnvelopeIcon, + HomeIcon, + UsersIcon, +} from "@heroicons/react/24/outline" +import { Navbar, NavbarBrand, NavbarContent, @@ -9,11 +14,13 @@ import { NavbarMenuItem, NavbarMenuToggle, } from "@nextui-org/react" + import Image from "next/image" import Link from "next/link" import { usePathname } from "next/navigation" import { useState } from "react" + export default function Nav() { const [isMenuOpen, setIsMenuOpen] = useState(false) const currentRoute = usePathname() @@ -23,21 +30,26 @@ export default function Nav() { label: "Home", href: "/", current: currentRoute === "/", + icon: }, { label: "Team", href: "/team", current: currentRoute === "/team", + icon: + }, { label: "Services", href: "/services", current: currentRoute === "/services", + icon: }, { label: "Contact", href: "/contact", current: currentRoute === "/contact", + icon: }, ] @@ -59,7 +71,10 @@ export default function Nav() { aria-current={item.current ? "page" : undefined} onClick={() => setIsMenuOpen(false)} > - {item.label} +
+ {item.icon} + {item.label} +
))}