diff --git a/src/components/calendar/CalendarCell.tsx b/src/components/calendar/CalendarCell.tsx index d5d8657..ee2e3d7 100644 --- a/src/components/calendar/CalendarCell.tsx +++ b/src/components/calendar/CalendarCell.tsx @@ -4,12 +4,21 @@ import { cn } from '@/lib/utils'; interface CalendarCellProps { date: number; + isCurrentMonth?: boolean; + isToday?: boolean; goals?: Goal[]; onClick?: (date: number, goals: Goal[], event: React.MouseEvent) => void; className?: string; } -const CalendarCell = ({ date, goals = [], onClick, className }: CalendarCellProps) => { +const CalendarCell = ({ + date, + isCurrentMonth = true, + isToday = false, + goals = [], + onClick, + className, +}: CalendarCellProps) => { const hasGoals = goals.length > 0; const firstGoal = goals[0]; const goalColorName = firstGoal ? getGoalBackgroundColorClass(firstGoal.color) : null; @@ -26,10 +35,19 @@ const CalendarCell = ({ date, goals = [], onClick, className }: CalendarCellProp className={cn( 'rounded-4 flex h-40 w-full min-w-40 cursor-pointer flex-col items-center p-1 transition md:max-h-44 md:max-w-84 lg:h-40 lg:max-w-85 lg:min-w-71', hasGoals && 'hover:bg-tertiary-01', + !isCurrentMonth && 'opacity-40', className, )} > - {date} + + {date} + {hasGoals && (