diff --git a/web/src/components/ui/dialog.tsx b/web/src/components/ui/dialog.tsx index 9fdda5c5..d9ccec91 100644 --- a/web/src/components/ui/dialog.tsx +++ b/web/src/components/ui/dialog.tsx @@ -1,8 +1,8 @@ "use client" +import * as React from "react" import * as DialogPrimitive from "@radix-ui/react-dialog" import { XIcon } from "lucide-react" -import * as React from "react" import { cn } from "@/lib/utils" @@ -38,7 +38,7 @@ function DialogOverlay({ ) { +}: React.ComponentProps & { + showCloseButton?: boolean +}) { return ( {children} - - - Close - + {showCloseButton && ( + + + Close + + )} ) @@ -122,15 +130,14 @@ function DialogDescription({ } export { - Dialog, - DialogClose, - DialogContent, - DialogDescription, - DialogFooter, - DialogHeader, - DialogOverlay, - DialogPortal, - DialogTitle, - DialogTrigger + Dialog, + DialogClose, + DialogContent, + DialogDescription, + DialogFooter, + DialogHeader, + DialogOverlay, + DialogPortal, + DialogTitle, + DialogTrigger, } -