Skip to content

Commit

Permalink
progress bar now updates with lightmode (#94)
Browse files Browse the repository at this point in the history
  • Loading branch information
LiamB94 authored Oct 9, 2024
1 parent e5940a2 commit c5ce44d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions fitness_tracker/src/components/AchievementsDisplay.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ function AchievementsDisplay({ darkmode }) {
{nextScoreTarget && (
<TableRow>
<TableCell>
<div style={{ display: "flex", justifyContent: "space-between" }}>
<div style={{ display: "flex", justifyContent: "space-between", color: darkmode ? "#fff" : "#000"}}>
<span>Next Score Achievement: {nextScoreTarget} points</span>
<span>{totalScore} / {nextScoreTarget} points</span>
</div>
Expand All @@ -138,7 +138,7 @@ function AchievementsDisplay({ darkmode }) {
{nextWorkoutTarget && (
<TableRow>
<TableCell>
<div style={{ display: "flex", justifyContent: "space-between" }}>
<div style={{ display: "flex", justifyContent: "space-between", color: darkmode ? "#fff" : "#000"}}>
<span>Next Workout Achievement: {nextWorkoutTarget} workouts</span>
<span>{workoutCount} / {nextWorkoutTarget} workouts</span>
</div>
Expand Down

0 comments on commit c5ce44d

Please sign in to comment.