diff --git a/src/pages/Home/components/EventList/eventList.jsx b/src/pages/Home/components/EventList/eventList.jsx index c03ccdd..975adf9 100644 --- a/src/pages/Home/components/EventList/eventList.jsx +++ b/src/pages/Home/components/EventList/eventList.jsx @@ -1,9 +1,13 @@ import { useMemo } from "react"; import styles from "./eventList.module.css"; import EventItem from "./eventItem.jsx"; +import { EventContext } from "../../../../contexts/events/EventContext.js"; +import { useContext } from "react"; -function EventList({ events }) { +function EventList() { + + const { events } = useContext(EventContext); const sortedEvents = useMemo(() => { return [...events].sort(