From f55edbc8a40f739bbe11a48ccc7067451db985e1 Mon Sep 17 00:00:00 2001 From: leejin_rho Date: Tue, 2 Jul 2024 17:31:18 +0900 Subject: [PATCH] =?UTF-8?q?#29=20fix:=20calendar=20=EB=85=84,=20=EC=9B=94?= =?UTF-8?q?=EC=9D=80=20=EC=84=A0=ED=83=9D=EA=B0=80=EB=8A=A5=ED=95=98?= =?UTF-8?q?=EA=B2=8C=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- components/challenge/ChallengeCalendar.tsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/components/challenge/ChallengeCalendar.tsx b/components/challenge/ChallengeCalendar.tsx index a58f9e3..2283df0 100644 --- a/components/challenge/ChallengeCalendar.tsx +++ b/components/challenge/ChallengeCalendar.tsx @@ -19,8 +19,8 @@ export default function ChallengeCalendar({ setClickedDate(clickedDate); }; - const disableAllDates = ({ date }) => { - return true; + const disableDates = ({ date, view }) => { + return view === "month"; }; const customTileContent = ({ date, view }: { date: Date; view: string }) => { @@ -58,7 +58,7 @@ export default function ChallengeCalendar({ prev2Label={null} minDate={new Date(2024, 4, 1)} tileContent={customTileContent} - tileDisabled={disableAllDates} + tileDisabled={disableDates} />