Working with menu button

This commit is contained in:
corey@blaishome.online
2025-02-13 22:51:56 -05:00
parent a1f4ef16bd
commit d349924695

View File

@@ -21,15 +21,11 @@ const ScoreTracker = () => {
};
// Handle Add Round, Game Completion, etc.
const handleGameEnd = () => {
// Navigate to the summary page after the game ends
navigate('/summary');
};
// Rest of your component code (Rendering, Button handlers, etc.)
};
// Handle adding a round
const handleAddRound = () => {
// Check if the max number of rounds is reached
@@ -154,7 +150,6 @@ const ScoreTracker = () => {
>
Main Menu
</Button>
</Box>
</Grid>
@@ -185,7 +180,8 @@ const ScoreTracker = () => {
Bullseyes: {state.currentGame.totalBullseyes}
</Typography>
</Grid>
{/* Round history */}
{/* Round history */}
<Grid item xs={12}>
<Box sx={{ maxHeight: '200px', overflow: 'auto' }}>
{state.currentGame && state.currentGame.rounds && state.currentGame.rounds.length > 0 ? (
@@ -207,3 +203,4 @@ const ScoreTracker = () => {
};
export default ScoreTracker;