From bade0f61081ca84270a2e9223393e62f80b38af9 Mon Sep 17 00:00:00 2001 From: schererleander Date: Fri, 26 Dec 2025 18:08:56 +0100 Subject: refactor(ui): simplify dialog component by removing close button --- src/components/ui/dialog.tsx | 15 +-------------- 1 file changed, 1 insertion(+), 14 deletions(-) (limited to 'src/components/ui/dialog.tsx') diff --git a/src/components/ui/dialog.tsx b/src/components/ui/dialog.tsx index a6f1cfb..aded03e 100644 --- a/src/components/ui/dialog.tsx +++ b/src/components/ui/dialog.tsx @@ -2,7 +2,6 @@ import * as React from "react" import * as DialogPrimitive from "@radix-ui/react-dialog" -import { XIcon } from "lucide-react" import { cn } from "@/lib/utils" @@ -49,11 +48,8 @@ function DialogOverlay({ function DialogContent({ className, children, - showCloseButton = true, ...props -}: React.ComponentProps & { - showCloseButton?: boolean -}) { +}: React.ComponentProps) { return ( @@ -66,15 +62,6 @@ function DialogContent({ {...props} > {children} - {showCloseButton && ( - - - Close - - )} ) -- cgit v1.3.1