Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 13 additions & 3 deletions src/pages/wch/challenge/[[...round]].tsx
Original file line number Diff line number Diff line change
Expand Up @@ -113,16 +113,26 @@ const Named: React.FC<{ text: string }> = ({ text }) => (
)

/**
* How everyone did, at every Maia level together, in a line: only once the
* results are out (the API holds them back until enough games are in).
* How everyone did, at every Maia level together, in a line, once the results
* are out (the API holds them back until enough games are in). Until then the
* line says when they will be, so every card's button sits at the same height.
*/
const Everyone: React.FC<{
stats: PositionStats | null
/** Whether a draw passes (a challenge to hold the position). */
drawPasses: boolean
}> = ({ stats, drawPasses }) => {
const share = stats ? winShare(stats) : null
if (!share || !stats) return null
if (!share || !stats)
return (
<p className="text-sm text-white/55">
{stats?.reveal_after ? (
`Everyone's results after ${stats.reveal_after} games`
) : (
<span aria-hidden>&nbsp;</span>
)}
</p>
)
return (
<p className="text-sm text-white/55">
{drawPasses
Expand Down
Loading