Skip to content
This repository has been archived by the owner on Jan 16, 2024. It is now read-only.

Commit

Permalink
chore(components:navbar): display searchbar component
Browse files Browse the repository at this point in the history
  ## what
  - display `searchbar` component

  ## how

  ## why

  ## where
  - ./src/components/navbar.tsx

  ## usage
  • Loading branch information
Clumsy-Coder committed Jan 16, 2024
1 parent fc8b124 commit 2c193b6
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/components/navbar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import { usePathname } from "next/navigation";

import { cn } from "@/lib/utils";
import { ModeToggle } from "@/components/darkmode-toggle";
import SearchBar from "./searchbar";

const links = [
{ label: "Uva uHunt", href: "/" },
Expand All @@ -23,20 +24,21 @@ const Navbar = ({ className, ...props }: React.HTMLAttributes<HTMLElement>) => {
)}
{...props}
>
<div className="flex items-center gap-2">
<div className="flex items-center gap-3">
{links.map((link) => (
<Link
key={link.label}
href={link.href}
className={cn(
"nav-link",
pathname === link.href && "active-nav-link",
"first:text-lg first:font-bold first:mr-8",
"first:text-lg first:font-bold ",
)}
>
{link.label}
</Link>
))}
<SearchBar />
</div>
<ModeToggle />
</nav>
Expand Down

0 comments on commit 2c193b6

Please sign in to comment.