Skip to content

Commit

Permalink
Past Elections cosmetics (Joystream#3168)
Browse files Browse the repository at this point in the history
- rebrand `ended at` to `started at` based on QN results
- fix re-appearance of Joystream#2656 ('round')
- election round tooltip with handbook link
  • Loading branch information
Joystream Stats committed Nov 5, 2022
1 parent e06495a commit 37ad7cb
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ export const PastElections = () => {
<>
<PastElectionsListHeaders $colLayout={PastElectionsColLayout}>
<SortHeader {...getSortProps('cycleId')}>Round</SortHeader>
<SortHeader {...getSortProps('updatedAt')}>Election ended at</SortHeader>
<SortHeader {...getSortProps('updatedAt')}>Election started at</SortHeader>
<ListHeader>Total staked</ListHeader>
<ListHeader>Revealed votes</ListHeader>
<ListHeader>Total candidates</ListHeader>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,16 @@ export const PastElectionStats = ({
totalVotes,
}: PastElectionStatsProps) => (
<Statistics>
<StatisticItem title="Ended at">
<StatisticItem title="Started at">
{finishedAtBlock ? formatDateString(finishedAtBlock.timestamp) : '-'}
</StatisticItem>
<StatisticItem title="Election round" tooltipText="Lorem ipsum...">
<TextHuge bold>{cycleId} round</TextHuge>
<StatisticItem
title="Election round"
tooltipText="Refers to the on-chain election cycle enumeration."
tooltipLinkURL="https://joystream.gitbook.io/testnet-workspace/system/council#election"
tooltipLinkText="Read about election cycles"
>
<TextHuge bold>{cycleId}</TextHuge>
</StatisticItem>
<NumericValueStat title="Total candidates" value={totalCandidates} />
<StatsBlock>
Expand Down

0 comments on commit 37ad7cb

Please sign in to comment.