Refine mobile navigation, header controls, and branding

This commit is contained in:
Rami Bitar
2026-09-16 14:56:27 -04:00
parent 1eedca17d8
commit 9e6dbfd721
5 changed files with 93 additions and 92 deletions
+5 -2
View File
@@ -5,6 +5,7 @@ import { Dialog as SheetPrimitive } from "radix-ui"
import { cn } from "@/lib/utils"
import { Button } from "@/components/ui/button"
import { DialogPortal } from "@/components/ui/dialog"
import { RiCloseLine } from "@remixicon/react"
function Sheet({ ...props }: React.ComponentProps<typeof SheetPrimitive.Root>) {
@@ -26,7 +27,7 @@ function SheetClose({
function SheetPortal({
...props
}: React.ComponentProps<typeof SheetPrimitive.Portal>) {
return <SheetPrimitive.Portal data-slot="sheet-portal" {...props} />
return <DialogPortal data-slot="sheet-portal" {...props} />
}
function SheetOverlay({
@@ -50,14 +51,16 @@ function SheetContent({
children,
side = "right",
showCloseButton = true,
overlayClassName,
...props
}: React.ComponentProps<typeof SheetPrimitive.Content> & {
side?: "top" | "right" | "bottom" | "left"
showCloseButton?: boolean
overlayClassName?: string
}) {
return (
<SheetPortal>
<SheetOverlay />
<SheetOverlay className={overlayClassName} />
<SheetPrimitive.Content
data-slot="sheet-content"
data-side={side}