Working with menu button
This commit is contained in:
@@ -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,6 +180,7 @@ const ScoreTracker = () => {
|
||||
Bullseyes: {state.currentGame.totalBullseyes}
|
||||
</Typography>
|
||||
</Grid>
|
||||
|
||||
{/* Round history */}
|
||||
<Grid item xs={12}>
|
||||
<Box sx={{ maxHeight: '200px', overflow: 'auto' }}>
|
||||
@@ -207,3 +203,4 @@ const ScoreTracker = () => {
|
||||
};
|
||||
|
||||
export default ScoreTracker;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user