diff --git a/src/components/TopNav.tsx b/src/components/TopNav.tsx index 2d5171e0..76ff9d70 100644 --- a/src/components/TopNav.tsx +++ b/src/components/TopNav.tsx @@ -88,7 +88,7 @@ export function TopNav() { {/* Mobile drawer */} - +
, - VariantProps { } + VariantProps { + /** + * When true, suppress the built-in close (X) button. Use this when the + * sheet content renders its own close affordance to avoid duplicate + * dismiss buttons. + */ + hideClose?: boolean; +} const SheetContent = React.forwardRef< React.ElementRef, SheetContentProps ->(({ side = "right", className, children, ...props }, ref) => ( +>(({ side = "right", className, children, hideClose = false, ...props }, ref) => ( {children} - - - Close - + {!hideClose && ( + + + Close + + )} ))