Add game completion status display with winner information to GamePickerCard
Implemented finished game state detection and winner display in the game picker UI. Added `finished` and `winnerName` props to GamePickerCard component, passed through from game metadata's `winner_user_id` and winner display name/email. Updated status message styling to show trophy icon and winner name when game is complete, with distinct background color (gold tint) to differentiate from active games (green tint).
This commit is contained in:
@@ -660,6 +660,8 @@ export default function App() {
|
||||
hostUserId={gameMeta?.host_user_id || ""}
|
||||
isHost={isHost}
|
||||
started={!!gameMeta?.started}
|
||||
finished={!!gameMeta?.winner_user_id}
|
||||
winnerName={gameMeta?.winner_display_name || gameMeta?.winner_email || ""}
|
||||
chipCount={gameChips.length}
|
||||
onStartGame={startGame}
|
||||
/>
|
||||
|
||||
Reference in New Issue
Block a user