Skip to content

Commit ffe228a

Browse files
committed
feat(gamemaster): render ScoreboardPanel in active game view
Imports ScoreboardPanel and places it below BuzzerPanel in the ActiveGame scroll area. The panel self-hides when scoringEnabled is false, so no conditional rendering needed at the call site.
1 parent 7a0b7c4 commit ffe228a

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

src/pages/admin/GameMaster.tsx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ import { Button, Badge, TransportPill } from '@/components/ui'
66
import { NavHeader } from '@/components/NavHeader'
77
import { RoundBoundary } from '@/components/RoundBoundary'
88
import { BuzzerPanel } from '@/components/buzzer/BuzzerPanel'
9+
import { ScoreboardPanel } from '@/components/scoreboard/ScoreboardPanel'
910
import { db } from '@/db'
1011
import { transportManager } from '@/transport'
1112
import { serialiseGameState, upsertPlayer, markPlayerAway } from '@/pages/admin/gamemaster-utils'
@@ -379,6 +380,9 @@ function ActiveGame({ game }: ActiveGameProps) {
379380
onAdjudicate={(id, decision) => void adjudicate(id, decision)}
380381
onClear={() => currentQuestionId && void clearBuzzes(currentQuestionId)}
381382
/>
383+
384+
{/* Scoreboard */}
385+
<ScoreboardPanel game={game} />
382386
</div>
383387
</div>
384388
</div>

0 commit comments

Comments
 (0)