Skip to content

Commit

Permalink
chore: apply styles to the correct month (#4151)
Browse files Browse the repository at this point in the history
  • Loading branch information
Yamico authored Nov 27, 2024
1 parent a51e363 commit 97ef5a8
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions web/src/components/ActivityCalendar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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)}
>
Expand Down

0 comments on commit 97ef5a8

Please sign in to comment.