Skip to content

Commit

Permalink
make past vacation changeable
Browse files Browse the repository at this point in the history
  • Loading branch information
jonasbjoralt committed Sep 16, 2024
1 parent 7bd9048 commit 0bb932e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion frontend/src/components/VacationCalendar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,7 @@ export default function VacationCalendar({
const dateCopy = new DateObject(date);
dateCopy.add(1, "h");

/*
if (dateIsVacationDayInThePast(date, dateCopy))
return {
disabled: true,
Expand All @@ -148,7 +149,8 @@ export default function VacationCalendar({
backgroundColor: "#C8EEFB",
},
};
else if (dateIsPublicHoliday(date))
*/
if (dateIsPublicHoliday(date))
return {
disabled: true,
style: { color: "#B91456", opacity: 0.5 },
Expand Down

0 comments on commit 0bb932e

Please sign in to comment.