From f1ba058bc5f1ac407649d8107900c03bff10ea97 Mon Sep 17 00:00:00 2001 From: gurramkarthiknetha Date: Sat, 14 Dec 2024 00:37:02 +0530 Subject: [PATCH] t74 --- src/components/EventCalendar/EventCalendar.tsx | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/components/EventCalendar/EventCalendar.tsx b/src/components/EventCalendar/EventCalendar.tsx index 8c2b8e4375..a087b3f999 100644 --- a/src/components/EventCalendar/EventCalendar.tsx +++ b/src/components/EventCalendar/EventCalendar.tsx @@ -414,8 +414,10 @@ const Calendar: React.FC = ({ return days.map((date, index) => { const className = [ date.getDay() === 0 || date.getDay() === 6 ? styles.day_weekends : '', - `${date.toLocaleDateString() === today.toLocaleDateString() ? styles.day__today : ''}`, - `${date.getMonth() !== currentMonth ? styles.day__outside : ''}`, + date.toLocaleDateString() === today.toLocaleDateString() + ? styles.day__today + : '', + date.getMonth() !== currentMonth ? styles.day__outside : '', selectedDate?.getTime() === date.getTime() ? styles.day__selected : '', styles.day, ].join(' ');