From ddb26bd7eca58f1ea9e9dfcfdc54ed7b5a7c6a4b Mon Sep 17 00:00:00 2001 From: cuteolaf Date: Thu, 23 Nov 2023 08:13:55 -0800 Subject: [PATCH] Indexer update (#194) Co-authored-by: TopETH --- src/components/validators/ValidatorsTable.tsx | 22 +++++++++---------- src/services/validatorService.ts | 1 - 2 files changed, 10 insertions(+), 13 deletions(-) diff --git a/src/components/validators/ValidatorsTable.tsx b/src/components/validators/ValidatorsTable.tsx index bb5dcaf9..9a4c5f15 100644 --- a/src/components/validators/ValidatorsTable.tsx +++ b/src/components/validators/ValidatorsTable.tsx @@ -11,7 +11,6 @@ import { SortDirection } from "../../model/sortDirection"; import { useState, useEffect } from "react"; import { SortOrder } from "../../model/sortOrder"; import { PaginatedResource } from "../../model/paginatedResource"; -import { DataError } from "../../utils/error"; export type ValidatorsTableProps = { validators: PaginatedResource; @@ -19,11 +18,11 @@ export type ValidatorsTableProps = { onSortChange?: (orderBy: ValidatorsOrder) => void; }; -// const day_change_css = css` -// font-size: small; -// font-weight: bold; -// margin-left: 10px; -// `; +const day_change_css = css` + font-size: small; + font-weight: bold; + margin-left: 10px; +`; const ValidatorsTableAttribute = ItemsTableAttribute; @@ -127,7 +126,7 @@ function ValidatorsTable(props: ValidatorsTableProps) { sortable sortProperty="amount" /> - {/* + ); }} - /> - */} + /> - {/* { @@ -185,8 +184,7 @@ function ValidatorsTable(props: ValidatorsTableProps) { ); }} - /> - */} + /> ); } diff --git a/src/services/validatorService.ts b/src/services/validatorService.ts index cf4b4702..08ba29fc 100644 --- a/src/services/validatorService.ts +++ b/src/services/validatorService.ts @@ -38,7 +38,6 @@ export async function getValidators( address amount nominators - rank amountChange nominatorChange }