1+ import { Button } from "@/components/buttons/button-primitive" ;
12import { Retry } from "@/components/buttons/retry" ;
23import { PieChart } from "@/components/display/pie-chart" ;
34import { ALERT_TYPES , Alert } from "@/components/ui/alert" ;
@@ -14,7 +15,9 @@ import LoadingScreen from "@/screens/loading-screen/loading-screen";
1415import { genericsState } from "@/state/atoms/schema.atom" ;
1516import { schemaKindLabelState } from "@/state/atoms/schemaKindLabel.atom" ;
1617import { getValidatorsStats } from "@/utils/checks" ;
18+ import { classNames } from "@/utils/common" ;
1719import { gql } from "@apollo/client" ;
20+ import { Icon } from "@iconify-icon/react" ;
1821import { useAtomValue } from "jotai" ;
1922import { useParams } from "react-router-dom" ;
2023import { 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