Skip to content

Commit 0c8b70f

Browse files
authored
fix: duplication of event calls
1 parent 7ec8846 commit 0c8b70f

File tree

1 file changed

+12
-3
lines changed

1 file changed

+12
-3
lines changed

src/pages/events/sections/eventsSection/Events.jsx

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,21 @@ import { EventCard } from "../../../community/sections/eventsPreview/SingleEvent
1414
// calendar,
1515
// globe,
1616
// } from "../../../../../assets/images/icons";
17-
import { EventCard } from "../../../community/sections/eventsPreview/SingleEvents/sections";
1817

1918
function Events({ events }) {
19+
// const formattedDate = format(parseISO(start_date), "do, MMMM");
20+
// import formatEventDates from "../../../../../utilities/formatEventDate";
21+
// import { LazyLoadImage } from "react-lazy-load-image-component";
22+
2023
return (
21-
<div className="mx-auto my-6 max-w-1216 w-full grid grid-cols-1 sm:grid-cols-2 place-content-center lg:grid-cols-3 gap-8 justify-between px-4 xl:px-0">
24+
<div
25+
// className="my-4 md:my-8 grid grid-cols-1 gap-8 sm:grid-cols-2 md:grid-cols-3 max-w-1216 mx-auto md:pb-10"
26+
className="mx-auto my-6 max-w-1216 w-full grid grid-cols-1 sm:grid-cols-2 place-content-center lg:grid-cols-3 gap-8 justify-between px-4 xl:px-0"
27+
// style={{
28+
// gridAutoColumns: "max-content",
29+
// gridTemplateRows: "minmax(550px, 400px)",
30+
// }}
31+
>
2232
{events &&
2333
Array.isArray(events) &&
2434
events.map((event) => (
@@ -123,7 +133,6 @@ function Events({ events }) {
123133
// </div>
124134
// </Link>
125135
))}
126-
events.map((event) => <EventCard key={event.id} event={event} />)}
127136
</div>
128137
);
129138
}

0 commit comments

Comments
 (0)