Skip to content

Commit

Permalink
Explorer - make APY, Commission, Last epoch rewards and Voting power …
Browse files Browse the repository at this point in the history
…sortable (MystenLabs#12208)

## Description 

Describe the changes or additions included in this PR.
Explorer - make APY, Commission, Last epoch rewards and Voting power
sortable
  • Loading branch information
Jibz-Mysten authored May 26, 2023
1 parent 0e20161 commit 5991f58
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 19 deletions.
4 changes: 4 additions & 0 deletions apps/explorer/src/pages/validators/Validators.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,7 @@ export function validatorsTableData(
{
header: 'APY',
accessorKey: 'apy',
enableSorting: true,
cell: (props: any) => {
const apy = props.getValue();
return (
Expand All @@ -158,6 +159,7 @@ export function validatorsTableData(
{
header: 'Commission',
accessorKey: 'commission',
enableSorting: true,
cell: (props: any) => {
const commissionRate = props.getValue();
return (
Expand All @@ -170,6 +172,7 @@ export function validatorsTableData(
{
header: 'Last Epoch Rewards',
accessorKey: 'lastReward',
enableSorting: true,
cell: (props: any) => {
const lastReward = props.getValue();
return lastReward !== null ? (
Expand All @@ -184,6 +187,7 @@ export function validatorsTableData(
{
header: 'Voting Power',
accessorKey: 'votingPower',
enableSorting: true,
cell: (props: any) => {
const votingPower = props.getValue();
return (
Expand Down
33 changes: 14 additions & 19 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 5991f58

Please sign in to comment.