diff --git a/src/components/events/EventList.jsx b/src/components/events/EventList.jsx new file mode 100644 index 0000000..bfce501 --- /dev/null +++ b/src/components/events/EventList.jsx @@ -0,0 +1,170 @@ +import React, { useEffect, useState } from "react"; + +const UpcomingEvent = ({ name, location, date, time, delay, description }) => ( +
+ {name} +
+Location: {location}
+ {date && ( + <> + +{date}
+ > + )} + {time && ( + <> + +{time}
+ > + )} ++ {description} +
+ +Error: {error}
} + {!loading && !error && events.length === 0 && ( +
- Upcoming
Events
-
- SCROLL DOWN TO SEE THE UPCOMING EVENTS FOR IEEE! + +
+ Upcoming
Events
+ SCROLL DOWN TO SEE THE UPCOMING EVENTS FOR IEEE! +