From 42303cb7fa91f9d542fcdc5b4dd265c1284b4a6f Mon Sep 17 00:00:00 2001 From: Pratap Rathi Date: Tue, 21 Jan 2025 21:38:49 +0530 Subject: [PATCH] fix: day and year view render on event page --- src/components/EventCalendar/EventCalendar.tsx | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/src/components/EventCalendar/EventCalendar.tsx b/src/components/EventCalendar/EventCalendar.tsx index c84a6d23d5..5bbceff614 100644 --- a/src/components/EventCalendar/EventCalendar.tsx +++ b/src/components/EventCalendar/EventCalendar.tsx @@ -286,12 +286,9 @@ const Calendar: React.FC = ({ ); }) || []; - const shouldShowViewMore = useMemo(() => { - return ( - allDayEventsList.length > 2 || - (windowWidth <= 700 && allDayEventsList.length > 0) - ); - }, [allDayEventsList.length, windowWidth]); + const shouldShowViewMore = + allDayEventsList.length > 2 || + (windowWidth <= 700 && allDayEventsList.length > 0); const handleExpandClick: () => void = () => { toggleExpand(-100);