Skip to content

Commit

Permalink
Indexer update (#194)
Browse files Browse the repository at this point in the history
Co-authored-by: TopETH <supernathanliu@gmail.com>
  • Loading branch information
cuteolaf and TopETH authored Nov 23, 2023
1 parent ddae893 commit ddb26bd
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 13 deletions.
22 changes: 10 additions & 12 deletions src/components/validators/ValidatorsTable.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,19 +11,18 @@ 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<Validator>;
initialSort?: string;
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<Validator>;

Expand Down Expand Up @@ -127,7 +126,7 @@ function ValidatorsTable(props: ValidatorsTableProps) {
sortable
sortProperty="amount"
/>
{/*

<ValidatorsTableAttribute
label=""
colCss={css`
Expand All @@ -154,8 +153,7 @@ function ValidatorsTable(props: ValidatorsTableProps) {
</>
);
}}
/>
*/}
/>

<ValidatorsTableAttribute
label="Nominators"
Expand All @@ -166,7 +164,8 @@ function ValidatorsTable(props: ValidatorsTableProps) {
sortable
sortProperty="nominators"
/>
{/*<ValidatorsTableAttribute

<ValidatorsTableAttribute
label=""
colCss={css`padding-left: 0px;`}
render={(validator) => {
Expand All @@ -185,8 +184,7 @@ function ValidatorsTable(props: ValidatorsTableProps) {
</>
);
}}
/>
*/}
/>
</ItemsTable>
);
}
Expand Down
1 change: 0 additions & 1 deletion src/services/validatorService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@ export async function getValidators(
address
amount
nominators
rank
amountChange
nominatorChange
}
Expand Down

0 comments on commit ddb26bd

Please sign in to comment.