Skip to content
This repository was archived by the owner on Jan 31, 2025. It is now read-only.

Commit 64ef8fb

Browse files
committed
refactor: components adjustments for landing page (#417)
1 parent 6c2b54f commit 64ef8fb

File tree

2 files changed

+14
-1
lines changed

2 files changed

+14
-1
lines changed

packages/components/src/header/index.tsx

+9-1
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,15 @@ import { faBars } from "@rivet-gg/icons";
22
import { Icon } from "@rivet-gg/icons";
33
import type { ReactNode } from "react";
44
import { AssetImage } from "../asset-image";
5+
import { cn } from "../lib/utils";
56
import { Button } from "../ui/button";
67
import { Flex } from "../ui/flex";
78
import { Sheet, SheetContent, SheetTrigger } from "../ui/sheet";
89
import { HeaderProgress } from "./header-progress";
910
import { NavItem } from "./nav-item";
1011

1112
interface HeaderProps {
13+
className?: string;
1214
mobileBreadcrumbs?: ReactNode;
1315
breadcrumbs?: ReactNode;
1416
subnav?: ReactNode;
@@ -20,6 +22,7 @@ interface HeaderProps {
2022
}
2123

2224
export function Header({
25+
className,
2326
breadcrumbs,
2427
subnav,
2528
mobileBreadcrumbs,
@@ -43,7 +46,12 @@ export function Header({
4346
),
4447
}: HeaderProps) {
4548
return (
46-
<header className="bg-background/60 border-b-border sticky top-0 z-10 flex flex-col items-center border-b py-2 backdrop-blur">
49+
<header
50+
className={cn(
51+
"bg-background/60 border-b-border sticky top-0 z-10 flex flex-col items-center border-b py-2 backdrop-blur",
52+
className,
53+
)}
54+
>
4755
{addons}
4856
<div className="w-full px-8 flex min-h-10 flex-col justify-center gap-4">
4957
<div className="flex w-full items-center gap-4">

packages/components/src/ui/tooltip.tsx

+5
Original file line numberDiff line numberDiff line change
@@ -43,10 +43,15 @@ const WithTooltip = ({ trigger, content, ...rest }: WithTooltipProps) => {
4343
);
4444
};
4545

46+
const TooltipPortal = TooltipPrimitive.TooltipPortal;
47+
const TooltipArrow = TooltipPrimitive.TooltipArrow;
48+
4649
export {
4750
Tooltip,
4851
TooltipTrigger,
4952
TooltipContent,
5053
TooltipProvider,
54+
TooltipPortal,
55+
TooltipArrow,
5156
WithTooltip,
5257
};

0 commit comments

Comments
 (0)