From 9eae374b26c2e25bd75ad508bb8788dd2d1c1c63 Mon Sep 17 00:00:00 2001 From: Nicholas Barnett Date: Tue, 22 Oct 2024 17:13:36 -0500 Subject: [PATCH] feat: wp --- src/app/signers/SignersTable.tsx | 28 +++++++++++++++++++++++----- 1 file changed, 23 insertions(+), 5 deletions(-) diff --git a/src/app/signers/SignersTable.tsx b/src/app/signers/SignersTable.tsx index c0719a271..e36bc5656 100644 --- a/src/app/signers/SignersTable.tsx +++ b/src/app/signers/SignersTable.tsx @@ -78,7 +78,9 @@ export const signersTableHeaders = [ 'Voting power', 'STX stacked', 'Latency', - 'Voting', + 'Approved', + 'Rejected', + 'Missing', ]; export const SignersTableHeaders = () => ( @@ -107,7 +109,9 @@ const SignerTableRow = ({ stxStaked, stackers, latency, - voting, + approved, + rejected, + missing, }: { index: number; isFirst: boolean; @@ -180,7 +184,17 @@ const SignerTableRow = ({ - {voting} + {approved} + + + + + {rejected} + + + + + {missing} @@ -225,7 +239,9 @@ interface SignerRowInfo { stxStaked: number; stackers: SignersStackersData[]; latency: string; // TODO: get this from the API - voting: string; // TODO: get this from the API + approved: string; // TODO: get this from the API + rejected: string; // TODO: get this from the API + missing: string; // TODO: get this from the API } function formatSignerRowData( @@ -238,7 +254,9 @@ function formatSignerRowData( stxStaked: parseFloat(singerInfo.stacked_amount) / 1_000_000, stackers, latency: '5 ms', // TODO: get this from the API - voting: '5/5/5', // TODO: get this from the API + approved: '78%', // TODO: get this from the API + rejected: '12%', // TODO: get this from the API + missing: '5%', // TODO: get this from the API }; }