Skip to content

Commit

Permalink
t74
Browse files Browse the repository at this point in the history
  • Loading branch information
gurramkarthiknetha committed Dec 13, 2024
1 parent 0baa4ad commit f1ba058
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/components/EventCalendar/EventCalendar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -414,8 +414,10 @@ const Calendar: React.FC<InterfaceCalendarProps> = ({
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(' ');
Expand Down

0 comments on commit f1ba058

Please sign in to comment.