Skip to content

Commit

Permalink
Merge pull request #3073 from ever-co/3069-improvement-planned-see-pl…
Browse files Browse the repository at this point in the history
…an--today-date-in-the-calendar-should-be

feat: today's date in calenday should look differently
  • Loading branch information
evereq authored Sep 26, 2024
2 parents d93a640 + 751c8b6 commit 9214e64
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
3 changes: 2 additions & 1 deletion apps/web/lib/features/daily-plan/all-plans-modal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -353,7 +353,8 @@ const FuturePlansCalendar = memo(function FuturePlansCalendar(props: ICalendarPr

pastDay: clsxm(
'relative after:absolute after:bottom-0 after:left-1/2 after:-translate-x-1/2 after:w-1.5 after:h-1.5 after:bg-yellow-600 after:rounded-full'
)
),
today: clsxm('border-2 !border-yellow-700 rounded')
}}
fromYear={new Date(sortedPlans?.[0]?.date ?? Date.now())?.getFullYear()}
toYear={new Date(sortedPlans?.[sortedPlans?.length - 1]?.date ?? Date.now())?.getFullYear() + 5}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -242,7 +242,10 @@ const CustomCalendar = memo(function CustomCalendar({
modifiers={{
booked: existingPlanDates
}}
modifiersClassNames={{ booked: 'bg-primary text-white' }}
modifiersClassNames={{
booked: 'bg-primary text-white',
today: clsxm('border-2 !border-yellow-700 rounded')
}}
fromYear={new Date().getUTCFullYear()}
toYear={new Date().getUTCFullYear() + 5}
/>
Expand Down

0 comments on commit 9214e64

Please sign in to comment.