Skip to content

Commit e932f5a

Browse files
committed
Fix navbar classname to support custom overrides
1 parent 9ec2038 commit e932f5a

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

frontend/src/components/Navbar.tsx

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import { Flame, LogOut } from "lucide-react";
44
import { Button } from "@/components/ui/button";
55
import UserAvatar from "@/components/UserAvatar";
66
import React from "react";
7+
import { twMerge } from "tailwind-merge";
78

89
interface NavbarProps {
910
isMinimal?: boolean;
@@ -14,8 +15,13 @@ export default function Navbar({ isMinimal = false, className }: NavbarProps) {
1415
const links: NavLinkProps[] = [{ label: "Dashboard", href: "/dashboard" }];
1516

1617
return (
17-
<header className={`sticky top-0 z-10 py-2 border-b bg-background ${className}`}>
18-
<nav className="container flex items-center gap-5 mx-auto h-10">
18+
<header
19+
className={twMerge(
20+
`sticky top-0 z-10 py-2 border-b bg-background`,
21+
className
22+
)}
23+
>
24+
<nav className="container flex items-center h-10 gap-5 mx-auto">
1925
{/* leave like this for now maybe use an svg icon later on */}
2026
<NavLogo />
2127
{!isMinimal && (

0 commit comments

Comments
 (0)