diff --git a/studio/src/components/ui/dialog.tsx b/studio/src/components/ui/dialog.tsx index 5b2348193e..bc28b34ccf 100644 --- a/studio/src/components/ui/dialog.tsx +++ b/studio/src/components/ui/dialog.tsx @@ -24,7 +24,7 @@ const DialogOverlay = React.forwardRef< ref={ref} className={cn( "fixed inset-0 z-50 bg-background/80 backdrop-blur-sm data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0", - className + className, )} {...props} /> @@ -33,20 +33,25 @@ DialogOverlay.displayName = DialogPrimitive.Overlay.displayName; const DialogContent = React.forwardRef< React.ElementRef, - React.ComponentPropsWithoutRef ->(({ className, children, ...props }, ref) => ( + React.ComponentPropsWithoutRef & { + onCloseClick?: () => void; + } +>(({ className, children, onCloseClick, ...props }, ref) => ( {children} - + Close @@ -62,7 +67,7 @@ const DialogHeader = ({
@@ -76,7 +81,7 @@ const DialogFooter = ({
@@ -91,7 +96,7 @@ const DialogTitle = React.forwardRef< ref={ref} className={cn( "text-lg font-semibold leading-none tracking-tight", - className + className, )} {...props} /> diff --git a/studio/src/pages/[organizationSlug]/settings.tsx b/studio/src/pages/[organizationSlug]/settings.tsx index 3f477d8624..c79b40651c 100644 --- a/studio/src/pages/[organizationSlug]/settings.tsx +++ b/studio/src/pages/[organizationSlug]/settings.tsx @@ -441,6 +441,9 @@ const UpdateIDPMappers = ({ onInteractOutside={(event) => { event.preventDefault(); }} + onCloseClick={() => { + updateMappers(currentMappers); + }} > Update group mappers