From b6001a00427011af8a3ef31757e7a397e81e2fc9 Mon Sep 17 00:00:00 2001 From: Dobromir Popov Date: Sun, 28 Apr 2024 01:16:13 +0300 Subject: [PATCH] still show assignments in green --- components/calendar/avcalendar.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/components/calendar/avcalendar.tsx b/components/calendar/avcalendar.tsx index b175a13..13acedd 100644 --- a/components/calendar/avcalendar.tsx +++ b/components/calendar/avcalendar.tsx @@ -308,7 +308,7 @@ const AvCalendar = ({ publisherId, events, selectedDate }) => { // if (event.isActive) { switch (event.type) { case 'assignment': - // backgroundColor = '#48bb78' // always green-500 as we don't pass isConfirmed correctly + backgroundColor = '#48bb78' // always green-500 as we don't pass isConfirmed correctly //backgroundColor = event.isConfirmed ? '#48bb78' : '#f6e05e'; // green-500 and yellow-300 from Tailwind CSS break; case 'recurring': @@ -350,7 +350,7 @@ const AvCalendar = ({ publisherId, events, selectedDate }) => { // bgColor = "bg-orange-500"; // } if (event.type === "assignment") { - // bgColor = event.isBySystem ? "bg-red-500" : (event.isConfirmed || true ? "bg-green-500" : "bg-yellow-500"); + bgColor = event.isBySystem ? "bg-red-500" : (event.isConfirmed || true ? "bg-green-500" : "bg-yellow-500"); //event.title = event.publisher.name; //ToDo: add other publishers names //event.title = common.getTimeFomatted(event.startTime) + " - " + common.getTimeFomatted(event.endTime);