From 751c8b60c0ca047a29ad26cf5d814914e65a0db4 Mon Sep 17 00:00:00 2001 From: CREDO23 Date: Thu, 26 Sep 2024 19:13:04 +0200 Subject: [PATCH] feat: today's date in calenday should look differently --- apps/web/lib/features/daily-plan/all-plans-modal.tsx | 3 ++- .../lib/features/daily-plan/create-daily-plan-form-modal.tsx | 5 ++++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/apps/web/lib/features/daily-plan/all-plans-modal.tsx b/apps/web/lib/features/daily-plan/all-plans-modal.tsx index 5f851fe19..67096e60d 100644 --- a/apps/web/lib/features/daily-plan/all-plans-modal.tsx +++ b/apps/web/lib/features/daily-plan/all-plans-modal.tsx @@ -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} diff --git a/apps/web/lib/features/daily-plan/create-daily-plan-form-modal.tsx b/apps/web/lib/features/daily-plan/create-daily-plan-form-modal.tsx index 282ef542a..345258348 100644 --- a/apps/web/lib/features/daily-plan/create-daily-plan-form-modal.tsx +++ b/apps/web/lib/features/daily-plan/create-daily-plan-form-modal.tsx @@ -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} />