diff --git a/client/src/components/ui/Dialog.tsx b/client/src/components/ui/Dialog.tsx index bb0d3aeb05..ef2cae96f3 100644 --- a/client/src/components/ui/Dialog.tsx +++ b/client/src/components/ui/Dialog.tsx @@ -40,9 +40,8 @@ DialogOverlay.displayName = DialogPrimitive.Overlay.displayName; const DialogContent = React.forwardRef< React.ElementRef, React.ComponentPropsWithoutRef & { showCloseButton?: boolean } ->(({ className, children = true, ...props }, ref) => { +>(({ className, children = true, showCloseButton = true, ...props }, ref) => { const isSmallScreen = useMediaQuery('(max-width: 768px)'); - return ( @@ -59,10 +58,12 @@ const DialogContent = React.forwardRef< {...props} > {children} - - - Close - + {showCloseButton && ( + + + Close + + )} );