Skip to content

Scheduling infrastructure for absolutely everyone.

fix: AvailabilitySettings atom closing override window button (#15518)

Lauris Skraucis48e7efccb22c
diff --git a/packages/ui/components/dialog/Dialog.tsx b/packages/ui/components/dialog/Dialog.tsx
index 2b9544e7c11..488823ce421 100644
--- a/packages/ui/components/dialog/Dialog.tsx
+++ b/packages/ui/components/dialog/Dialog.tsx
@@ -244,7 +244,7 @@ export function DialogClose(
data-testid={props["data-testid"] || "dialog-rejection"}
color={props.color || "minimal"}
{...props}>
- {props.children ? props.children : t("Close")}
+ {props.children ? props.children : t("close")}
</Button>
</Close>
);
diff --git a/packages/ui/components/dialog/dialog.test.tsx b/packages/ui/components/dialog/dialog.test.tsx
index 061bc386a53..4611194fa8e 100644
--- a/packages/ui/components/dialog/dialog.test.tsx
+++ b/packages/ui/components/dialog/dialog.test.tsx
@@ -128,7 +128,7 @@ describe("Tests for Dialog component", () => {
test("Should use color from props in CloseDialog", async () => {
render(<DialogComponent open color="destructive" />);
- const closeBtn = screen.getByText("Close");
+ const closeBtn = screen.getByText("close");
expect(closeBtn.classList.toString()).toContain("hover:text-red-700");
});