diff --git a/components/NavBar.tsx b/components/NavBar.tsx index f33edda..d7866b7 100644 --- a/components/NavBar.tsx +++ b/components/NavBar.tsx @@ -20,7 +20,7 @@ const NavBar = () => { <>
{ - 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} />