Skip to content

Commit ed628f5

Browse files
committed
chore: replacement with generic button
1 parent 29ef069 commit ed628f5

File tree

2 files changed

+9
-9
lines changed

2 files changed

+9
-9
lines changed

src/components/ClusterNodes/ClusterList/ClusterListRow.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ const ClusterListRow = ({
6262
return (
6363
<div
6464
key={`cluster-${clusterData.id}`}
65-
className={`cluster-list-row fw-4 cn-9 fs-13 dc__border-bottom-n1 pt-12 pb-12 pr-20 pl-20 hover-class dc__visible-hover dc__visible-hover--parent
65+
className={`cluster-list-row fw-4 cn-9 fs-13 dc__border-bottom-n1 py-12 px-20 hover-class dc__visible-hover dc__visible-hover--parent
6666
${clusterListLoader ? 'show-shimmer-loading dc__align-items-center' : ''}`}
6767
>
6868
{KubeConfigRowCheckbox && <KubeConfigRowCheckbox clusterData={clusterData} />}

src/components/ClusterNodes/ClusterList/ClusterListView.tsx

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ import {
55
BulkSelectionEvents,
66
BulkSelectionIdentifiersType,
77
BulkSelectionProvider,
8+
Button,
9+
ButtonVariantType,
810
ClusterDetail,
911
ClusterFiltersType,
1012
SearchBar,
@@ -109,20 +111,18 @@ const ClusterListView = (props: ClusterViewType) => {
109111
{clusterListLoader ? (
110112
<span className="dc__loading-dots mr-20">Syncing</span>
111113
) : (
112-
<div className="flex left">
114+
<div className="flex left dc__gap-8">
113115
<span>
114116
Last refreshed&nbsp;
115117
<Timer start={lastSyncTime} />
116118
&nbsp;ago
117119
</span>
118-
<button
119-
type="button"
120-
data-testid="cluster-list-refresh-button"
121-
className="btn btn-link p-0 fw-6 cb-5 ml-5 fs-13"
120+
<Button
121+
text="Refresh"
122+
dataTestId="cluster-list-refresh-button"
122123
onClick={handleRefresh}
123-
>
124-
Refresh
125-
</button>
124+
variant={ButtonVariantType.text}
125+
/>
126126
</div>
127127
)}
128128
</div>

0 commit comments

Comments
 (0)