fix(matching): apply turn indicators to arcade version too

The previous commits only updated the /games/ version but not the
/arcade/ version. This commit applies the same changes to the arcade
version so turn indicators work properly there.

Changes:
- Pass game state (currentPlayer, scores, streaks) from arcade
  MemoryPairsGame to PageWithNav
- Remove PlayerStatusBar import and usage from arcade GamePhase

Now both versions use nav avatars as turn indicators.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
Thomas Hallock
2025-10-11 09:08:33 -05:00
parent 22984b4423
commit e6f96a8b99
2 changed files with 4 additions and 3 deletions

View File

@@ -5,7 +5,6 @@ import { useGameMode } from '../../../../contexts/GameModeContext'
import { pluralizeWord } from '../../../../utils/pluralization'
import { useMemoryPairs } from '../context/MemoryPairsContext'
import { MemoryGrid } from './MemoryGrid'
import { PlayerStatusBar } from './PlayerStatusBar'
export function GamePhase() {
const { state, resetGame: _resetGame, activePlayers } = useMemoryPairs()
@@ -77,8 +76,7 @@ export function GamePhase() {
</div>
</div>
{/* Player Status Bar */}
<PlayerStatusBar />
{/* Player Status Bar - Removed, now using nav avatars as turn indicator */}
{/* Memory Grid - The main game area */}
<div

View File

@@ -46,6 +46,9 @@ export function MemoryPairsGame() {
onNewGame={() => {
resetGame()
}}
currentPlayerId={state.currentPlayer}
playerScores={state.scores}
playerStreaks={state.consecutiveMatches}
>
<StandardGameLayout>
<div