diff --git a/components/calender/index.tsx b/components/calender/index.tsx index 3178f34..cb44b2d 100644 --- a/components/calender/index.tsx +++ b/components/calender/index.tsx @@ -101,6 +101,11 @@ const Calender = (newDate?: UpdateCalendarProps): JSX.Element => { w="100%" h="100%" key={date} + {...(isOverflow && { + _hover: { + cursor: "pointer" + } + })} {...(isOverflow && { onClick: () => { if (overflowDirection === "next") { diff --git a/contexts/CalenderContext.tsx b/contexts/CalenderContext.tsx index 7ec787d..89b32ae 100644 --- a/contexts/CalenderContext.tsx +++ b/contexts/CalenderContext.tsx @@ -191,6 +191,7 @@ const CalenderContextProvider = ({ thisWeek.forEach((e, i) => { const overflowInfo = isOverflow(selectedDate, sunCurrDate); + const day: MonthDay = { ...overflowInfo, date: sunCurrDate @@ -222,8 +223,10 @@ const CalenderContextProvider = ({ const thisWeek = mondays[week]; thisWeek.forEach((e, i) => { + const overflowInfo = isOverflow(selectedDate, sunCurrDate); + const day: MonthDay = { - isOverflow: isOverflow(selectedDate, monCurrDate), + ...overflowInfo, date: monCurrDate }; monCurrDate = add(monCurrDate, {