Skip to content

Commit

Permalink
✨ Botón de volver al menú principal
Browse files Browse the repository at this point in the history
  • Loading branch information
coral2742 committed Apr 10, 2024
1 parent 16730b0 commit 0c76223
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions webapp/src/components/Game.js
Original file line number Diff line number Diff line change
Expand Up @@ -364,7 +364,7 @@ const getQuestions = () => {
}, 1000);
}

}, 4000);
}, 2000);


}
Expand Down Expand Up @@ -466,14 +466,19 @@ const getQuestions = () => {


</Paper>
<div>
<Button title="contador" onClick={handleMainPage} variant="contained" color="secondary">
Volver al menú principal</Button>
</div>
</div>
)}


{!isGameFinished() && !isFinished &&(
<div>
<Button title="contador" onClick={handleDialogOpen} variant="contained" color="secondary">
Volver al menú principal</Button>
</div>
)}


<Dialog
Expand Down

0 comments on commit 0c76223

Please sign in to comment.