fix: add navigation to games from character selection modal
Now clicking character cards opens selection modal, then navigating to: - Memory Lightning → /games/memory-quiz - Battle Arena → /games/matching Character-driven game entry flow is complete! 🎮 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
@@ -20,10 +20,15 @@ export default function GamesPage() {
|
||||
}
|
||||
|
||||
const handleStartGame = (character: 1 | 2) => {
|
||||
// This would normally navigate to the game with the selected character
|
||||
console.log(`Starting ${showCharacterSelection} with character ${character} in ${selectedGameMode} mode`)
|
||||
setShowCharacterSelection(null)
|
||||
// Navigate to game (implement later)
|
||||
|
||||
// Navigate to the appropriate game
|
||||
if (showCharacterSelection === 'memory-lightning') {
|
||||
window.location.href = '/games/memory-quiz'
|
||||
} else if (showCharacterSelection === 'battle-arena') {
|
||||
window.location.href = '/games/matching'
|
||||
}
|
||||
}
|
||||
|
||||
return (
|
||||
|
||||
Reference in New Issue
Block a user