Skip to content

Commit 97ef5a8

Browse files
authored
chore: apply styles to the correct month (#4151)
1 parent a51e363 commit 97ef5a8

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

web/src/components/ActivityCalendar.tsx

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -84,9 +84,10 @@ const ActivityCalendar = (props: Props) => {
8484
"w-6 h-6 text-xs rounded-xl flex justify-center items-center border cursor-default",
8585
"text-gray-400",
8686
item.isCurrentMonth ? getCellAdditionalStyles(count, maxCount) : "opacity-60",
87-
isToday && "border-zinc-400",
88-
isSelected && "font-bold border-zinc-400",
89-
!isToday && !isSelected && "border-transparent",
87+
item.isCurrentMonth && isToday && "border-zinc-400",
88+
item.isCurrentMonth && isSelected && "bg-success font-bold",
89+
item.isCurrentMonth && !isToday && !isSelected && "border-transparent",
90+
!item.isCurrentMonth && "border-transparent",
9091
)}
9192
onClick={() => count && onClick && onClick(date)}
9293
>

0 commit comments

Comments
 (0)