Skip to content

Commit

Permalink
making the dates to all be the color black and adding back button to …
Browse files Browse the repository at this point in the history
…streak page
  • Loading branch information
WelldoneM committed Nov 7, 2024
1 parent 3910db1 commit 0368c4b
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/components/common/Header.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,8 @@ const Header = () => {
// State for Dialog visibility
const [openConfirmDialog, setOpenConfirmDialog] = useState(false)

// Show back button only on pages other than Home and Streak
const showBackButton =
location.pathname !== '/' && location.pathname !== '/streak'
// Show back button only on pages other than Home
const showBackButton = location.pathname !== '/'

// Streak count (There may not have a user logged in)
const streakCount = user?.streak?.count || 0
Expand Down
5 changes: 5 additions & 0 deletions src/styles/StreakPage.css
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
/* Ensure all calendar dates have the color black */
.react-calendar__month-view__days__day--weekend {
color: black !important; /* Override weekend color */
}

/* Custom weekday headers */
.react-calendar__month-view__weekdays__weekday {
text-transform: capitalize;
Expand Down

0 comments on commit 0368c4b

Please sign in to comment.