Skip to content

Commit 7f993c2

Browse files
committed
Added close buttons to the deploy dialogs
1 parent 2a8fa93 commit 7f993c2

File tree

2 files changed

+10
-2
lines changed

2 files changed

+10
-2
lines changed

apps/webapp/app/components/runs/v3/RetryDeploymentIndexingDialog.tsx

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import { ArrowPathIcon } from "@heroicons/react/20/solid";
2+
import { DialogClose } from "@radix-ui/react-dialog";
23
import { Form, useNavigation } from "@remix-run/react";
34
import { Button } from "~/components/primitives/Buttons";
45
import {
@@ -33,6 +34,9 @@ export function RetryDeploymentIndexingDialog({
3334
any errors and re-deploy.
3435
</DialogDescription>
3536
<DialogFooter>
37+
<DialogClose asChild>
38+
<Button variant="tertiary/medium">Cancel</Button>
39+
</DialogClose>
3640
<Form
3741
action={`/resources/${projectId}/deployments/${deploymentShortCode}/retry-indexing`}
3842
method="post"
@@ -41,7 +45,7 @@ export function RetryDeploymentIndexingDialog({
4145
type="submit"
4246
name="redirectUrl"
4347
value={redirectPath}
44-
variant="primary/small"
48+
variant="primary/medium"
4549
LeadingIcon={isLoading ? "spinner-white" : ArrowPathIcon}
4650
disabled={isLoading}
4751
shortcut={{ modifiers: ["meta"], key: "enter" }}

apps/webapp/app/components/runs/v3/RollbackDeploymentDialog.tsx

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import { ArrowPathIcon } from "@heroicons/react/20/solid";
2+
import { DialogClose } from "@radix-ui/react-dialog";
23
import { Form, useNavigation } from "@remix-run/react";
34
import { Button } from "~/components/primitives/Buttons";
45
import {
@@ -33,6 +34,9 @@ export function RollbackDeploymentDialog({
3334
with these tasks included.
3435
</DialogDescription>
3536
<DialogFooter>
37+
<DialogClose asChild>
38+
<Button variant="tertiary/medium">Cancel</Button>
39+
</DialogClose>
3640
<Form
3741
action={`/resources/${projectId}/deployments/${deploymentShortCode}/rollback`}
3842
method="post"
@@ -41,7 +45,7 @@ export function RollbackDeploymentDialog({
4145
type="submit"
4246
name="redirectUrl"
4347
value={redirectPath}
44-
variant="primary/small"
48+
variant="primary/medium"
4549
LeadingIcon={isLoading ? "spinner-white" : ArrowPathIcon}
4650
disabled={isLoading}
4751
shortcut={{ modifiers: ["meta"], key: "enter" }}

0 commit comments

Comments
 (0)