From 82d95fab425c88aea1c20f498b2c94c06fdc3cbe Mon Sep 17 00:00:00 2001 From: Eric Fithian Date: Fri, 26 Jan 2024 13:15:15 -0700 Subject: [PATCH] fixed eslint errors --- frontend/src/routes/events.jsx | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) 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}