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