fix(multi): use startGame for next round button in waiting phase

This commit is contained in:
jessy-david-dev
2026-04-13 00:20:17 +02:00
parent fe703f5f8f
commit 79d90b75c4
2 changed files with 4 additions and 1 deletions
+3 -1
View File
@@ -23,6 +23,7 @@ type GameScreenProps = {
canGoBack: boolean;
onRetry: () => void;
onNextRound: () => void;
onStartGame: () => void;
onResetGame: () => void;
onSurrender: () => void;
};
@@ -44,6 +45,7 @@ export function GameScreen({
canGoBack,
onRetry,
onNextRound,
onStartGame,
onResetGame,
onSurrender,
}: GameScreenProps) {
@@ -201,7 +203,7 @@ export function GameScreen({
</p>
{isHost && (
<div className="flex flex-col gap-2.5 w-full max-w-xs mt-2">
<button className={btnPrimary} onClick={onNextRound}>
<button className={btnPrimary} onClick={onStartGame}>
Manche suivante
</button>
<button className={btnGhost} onClick={onResetGame}>
+1
View File
@@ -183,6 +183,7 @@ export function ScreenRouter({
canGoBack={multi.canGoBack}
onRetry={multi.retryLoad}
onNextRound={handlers.handleNextRound}
onStartGame={handlers.handleStartGame}
onResetGame={handlers.handleResetGame}
onSurrender={handlers.handleSurrender}
/>