Skip to content

Commit

Permalink
fix: day and year view render on event page
Browse files Browse the repository at this point in the history
  • Loading branch information
PratapRathi committed Jan 21, 2025
1 parent a32533b commit 42303cb
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions src/components/EventCalendar/EventCalendar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -286,12 +286,9 @@ const Calendar: React.FC<InterfaceCalendarProps> = ({
);
}) || [];

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);
Expand Down

0 comments on commit 42303cb

Please sign in to comment.