Skip to content

Commit a19aaf9

Browse files
authored
Retry all button for checks is bigger (#4632)
1 parent bbc7d6f commit a19aaf9

File tree

2 files changed

+12
-6
lines changed

2 files changed

+12
-6
lines changed

changelog/4315.fixed.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
"Retry All" button for checks is bigger

frontend/app/src/screens/diff/checks/checks-summary.tsx

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import { Button } from "@/components/buttons/button-primitive";
12
import { Retry } from "@/components/buttons/retry";
23
import { PieChart } from "@/components/display/pie-chart";
34
import { ALERT_TYPES, Alert } from "@/components/ui/alert";
@@ -14,7 +15,9 @@ import LoadingScreen from "@/screens/loading-screen/loading-screen";
1415
import { genericsState } from "@/state/atoms/schema.atom";
1516
import { schemaKindLabelState } from "@/state/atoms/schemaKindLabel.atom";
1617
import { getValidatorsStats } from "@/utils/checks";
18+
import { classNames } from "@/utils/common";
1719
import { gql } from "@apollo/client";
20+
import { Icon } from "@iconify-icon/react";
1821
import { useAtomValue } from "jotai";
1922
import { useParams } from "react-router-dom";
2023
import { toast } from "react-toastify";
@@ -85,13 +88,15 @@ export const ChecksSummary = (props: tChecksSummaryProps) => {
8588
<div className="flex justify-center m-4" data-testid="checks-summary">
8689
<div className="flex flex-col-reverse items-center relative">
8790
<div className="lg:absolute lg:top-1/2 lg:-left-28 lg:transform lg:-translate-y-1/2 flex items-center justify-between p-2">
88-
<span className="mr-1 text-xs">Retry all:</span>
89-
90-
<Retry
91+
<Button
9192
onClick={() => handleRetry("all")}
92-
isLoading={isLoading || !!validatorsInProgress.length}
93-
isDisabled={!auth?.permissions?.write}
94-
/>
93+
disabled={!auth?.permissions?.write}
94+
variant="ghost"
95+
className="gap-1 hover:bg-neutral-200"
96+
>
97+
Retry all
98+
<Icon icon="mdi:reload" className={classNames(isLoading && "animate-spin")} />
99+
</Button>
95100
</div>
96101

97102
<div className="flex">

0 commit comments

Comments
 (0)