From 37ad7cb3bffdd445885781f242c49ac70fbcb724 Mon Sep 17 00:00:00 2001 From: Joystream Stats Date: Sat, 5 Nov 2022 19:57:26 +0000 Subject: [PATCH] Past Elections cosmetics (#3168) - rebrand `ended at` to `started at` based on QN results - fix re-appearance of #2656 ('round') - election round tooltip with handbook link --- .../pages/Election/PastElections/PastElections.tsx | 2 +- .../election/pastElection/PastElectionStats.tsx | 11 ++++++++--- 2 files changed, 9 insertions(+), 4 deletions(-) diff --git a/packages/ui/src/app/pages/Election/PastElections/PastElections.tsx b/packages/ui/src/app/pages/Election/PastElections/PastElections.tsx index 06e10b778a..c5ba2de1d1 100644 --- a/packages/ui/src/app/pages/Election/PastElections/PastElections.tsx +++ b/packages/ui/src/app/pages/Election/PastElections/PastElections.tsx @@ -48,7 +48,7 @@ export const PastElections = () => { <> Round - Election ended at + Election started at Total staked Revealed votes Total candidates diff --git a/packages/ui/src/council/components/election/pastElection/PastElectionStats.tsx b/packages/ui/src/council/components/election/pastElection/PastElectionStats.tsx index a38d3fbe38..e305e819e2 100644 --- a/packages/ui/src/council/components/election/pastElection/PastElectionStats.tsx +++ b/packages/ui/src/council/components/election/pastElection/PastElectionStats.tsx @@ -21,11 +21,16 @@ export const PastElectionStats = ({ totalVotes, }: PastElectionStatsProps) => ( - + {finishedAtBlock ? formatDateString(finishedAtBlock.timestamp) : '-'} - - {cycleId} round + + {cycleId}