Skip to content

Commit

Permalink
feat: today's date in calenday should look differently
Browse files Browse the repository at this point in the history
  • Loading branch information
CREDO23 committed Sep 26, 2024
1 parent d93a640 commit 751c8b6
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 751c8b6

Please sign in to comment.