Skip to content

Commit

Permalink
Merge pull request #307 from SELab-2/calendar_colors
Browse files Browse the repository at this point in the history
gepasseerde deadlines verschijnen licht op de kalender
  • Loading branch information
gusvanpoucke authored May 22, 2024
2 parents 283e879 + 687b23b commit c9c0b3d
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions frontend/frontend/src/components/DeadlineCalendar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -65,9 +65,15 @@ function ServerDay(
key={props.day.toString()}
overlap="circular"
badgeContent={
isSelected ? (
<AssignmentIcon color={'primary'} fontSize={'small'} />
) : undefined
isSelected
? props.day.isBefore(dayjs())
? (
<AssignmentIcon color={'secondary'} fontSize={'small'} />
)
: (
<AssignmentIcon color={'primary'} fontSize={'small'} />
)
: undefined
}
>
<PickersDay
Expand Down

0 comments on commit c9c0b3d

Please sign in to comment.