diff --git a/frontend/src/routes/events.jsx b/frontend/src/routes/events.jsx index 4dba1da..1f4cf81 100644 --- a/frontend/src/routes/events.jsx +++ b/frontend/src/routes/events.jsx @@ -1,9 +1,9 @@ -import React, {useEffect} from 'react'; +import React from 'react'; import {useState} from 'react'; import PropTypes from 'prop-types'; export default function Events({EventService}) { - const [events, setEvents] = useState(EventService.getEvents()); + const [events] = useState(EventService.getEvents()); const eventDisplay = (event) => ( // event name, date, starttime, endtime, description, location in a single row @@ -13,9 +13,9 @@ export default function Events({EventService}) {
{event.description}
{event.date} • {event.startTime} - {event.endTime}
- - - + + + {event.location}