Skip to content

Commit

Permalink
fix(explorer): remove validators table row index (#5661)
Browse files Browse the repository at this point in the history
  • Loading branch information
brancoder authored Feb 27, 2025
1 parent 89a6897 commit 4554c4b
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 13 deletions.
11 changes: 0 additions & 11 deletions apps/explorer/src/lib/ui/utils/generateValidatorsTableColumns.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -94,17 +94,6 @@ export function generateValidatorsTableColumns({
highlightValidatorName,
}: generateValidatorsTableColumnsArgs): ColumnDef<IotaValidatorSummaryExtended>[] {
let columns: ColumnDef<IotaValidatorSummaryExtended>[] = [
{
header: '#',
id: 'number',
cell({ row }) {
return (
<TableCellBase>
<TableCellText>{row.index + 1}</TableCellText>
</TableCellBase>
);
},
},
{
header: 'Name',
id: 'name',
Expand Down
15 changes: 13 additions & 2 deletions apps/explorer/src/pages/validators/Validators.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ import {
useMultiGetObjects,
} from '@iota/core';
import {
Badge,
BadgeType,
DisplayStats,
DisplayStatsSize,
DisplayStatsType,
Expand Down Expand Up @@ -121,7 +123,6 @@ function ValidatorPageResult(): JSX.Element {
rollingAverageApys: validatorsApy || null,
highlightValidatorName: true,
includeColumns: [
'#',
'Name',
'Stake',
'Proposed next Epoch gas price',
Expand Down Expand Up @@ -196,7 +197,17 @@ function ValidatorPageResult(): JSX.Element {
))}
</div>
<Panel>
<Title title="All Validators" />
<Title
title="All Validators"
supportingElement={
<span className="ml-1">
<Badge
type={BadgeType.PrimarySoft}
label={sortedValidators?.length.toString()}
/>
</span>
}
/>
<div className="p-md">
<ErrorBoundary>
{(isPending || validatorsEventsLoading) && (
Expand Down

0 comments on commit 4554c4b

Please sign in to comment.