fix: Dialog is open after adding a new overwrite (#11220)

Co-authored-by: Joe Au-Yeung <[email protected]>
Co-authored-by: Peer Richelsen <[email protected]>
This commit is contained in:
authored and GitHub committed 2023-10-09 09:55:14 +01:00
1 parent 9857b46121
commit 76d476441f
3 files changed
+42 -44

No files matched your search

+1 -1
View File
@@ -187,7 +187,7 @@ export function DialogClose(
return (
<DialogPrimitive.Close asChild {...props.dialogCloseProps}>
{/* This will require the i18n string passed in */}
<Button color={props.color || "minimal"} {...props}>
<Button data-testid="dialog-rejection" color={props.color || "minimal"} {...props}>
{props.children ? props.children : t("Close")}
</Button>
</DialogPrimitive.Close>