Broken updates

This commit is contained in:
Administrator
2025-02-13 18:09:28 -05:00
parent 6155f8b253
commit 9027d9c52b
6 changed files with 440 additions and 124 deletions

View File

@@ -10,7 +10,7 @@ import {
} from '@mui/material';
import { useScore, ACTIONS } from '../context/ScoreContext';
const GameSetup = () => {
const GameSetup = ({ onGameStart }) => {
const { dispatch } = useScore();
const startGame = (gameType) => {
@@ -18,6 +18,7 @@ const GameSetup = () => {
type: ACTIONS.START_NEW_ROUND,
payload: { gameType }
});
onGameStart();
};
return (