Skip to content

Commit

Permalink
gepasseerde deadlines verschijnen licht op de kalender
Browse files Browse the repository at this point in the history
  • Loading branch information
gusvanpoucke committed May 22, 2024
1 parent 10e022e commit 687b23b
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 687b23b

Please sign in to comment.