Unverified Commit 97ef5a88 authored by KidLoveToPlay's avatar KidLoveToPlay Committed by GitHub

chore: apply styles to the correct month (#4151)

parent a51e363c
......@@ -84,9 +84,10 @@ const ActivityCalendar = (props: Props) => {
"w-6 h-6 text-xs rounded-xl flex justify-center items-center border cursor-default",
"text-gray-400",
item.isCurrentMonth ? getCellAdditionalStyles(count, maxCount) : "opacity-60",
isToday && "border-zinc-400",
isSelected && "font-bold border-zinc-400",
!isToday && !isSelected && "border-transparent",
item.isCurrentMonth && isToday && "border-zinc-400",
item.isCurrentMonth && isSelected && "bg-success font-bold",
item.isCurrentMonth && !isToday && !isSelected && "border-transparent",
!item.isCurrentMonth && "border-transparent",
)}
onClick={() => count && onClick && onClick(date)}
>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment