diff options
| author | schererleander <leander@schererleander.de> | 2025-12-26 18:08:56 +0100 |
|---|---|---|
| committer | schererleander <leander@schererleander.de> | 2025-12-26 18:08:56 +0100 |
| commit | bade0f61081ca84270a2e9223393e62f80b38af9 (patch) | |
| tree | d7730f233c242b026ece12b8ca4e963fed008512 /src/components/ui/dialog.tsx | |
| parent | 338075af2da116d7b51fab6ee6398320f4f8141c (diff) | |
Diffstat (limited to 'src/components/ui/dialog.tsx')
| -rw-r--r-- | src/components/ui/dialog.tsx | 15 |
1 files changed, 1 insertions, 14 deletions
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<typeof DialogPrimitive.Content> & { - showCloseButton?: boolean -}) { +}: React.ComponentProps<typeof DialogPrimitive.Content>) { return ( <DialogPortal data-slot="dialog-portal"> <DialogOverlay /> @@ -66,15 +62,6 @@ function DialogContent({ {...props} > {children} - {showCloseButton && ( - <DialogPrimitive.Close - data-slot="dialog-close" - className="ring-offset-background focus:ring-ring data-[state=open]:bg-accent data-[state=open]:text-muted-foreground absolute top-4 right-4 rounded-xs opacity-70 transition-opacity hover:opacity-100 focus:ring-2 focus:ring-offset-2 focus:outline-hidden disabled:pointer-events-none [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4" - > - <XIcon /> - <span className="sr-only">Close</span> - </DialogPrimitive.Close> - )} </DialogPrimitive.Content> </DialogPortal> ) |
