Skip to content

Commit

Permalink
fixed eslint errors
Browse files Browse the repository at this point in the history
  • Loading branch information
Eric-Fithian committed Jan 26, 2024
1 parent 74c540a commit 82d95fa
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions frontend/src/routes/events.jsx
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -13,9 +13,9 @@ export default function Events({EventService}) {
<div className="text-grey-5">{event.description}</div>
<div className="mt-3 text-grey-5">{event.date}{event.startTime} - {event.endTime}</div>
<div className="mt-1 text-sm text-grey-5">
<svg xmlns="http://www.w3.org/2000/svg" className="h-4 w-4 inline-block mr-1" fill="none" viewBox="0 0 24 24" stroke="currentColor">
<path strokeLinecap="round" strokeLinejoin="round" strokeWidth="2" d="M12 2C8.13401 2 5 5.13401 5 9C5 14.25 12 22 12 22C12 22 19 14.25 19 9C19 5.13401 15.866 2 12 2ZM12 11C10.3431 11 9 9.65685 9 8C9 6.34315 10.3431 5 12 5C13.6569 5 15 6.34315 15 8C15 9.65685 13.6569 11 12 11Z" />
</svg>
<svg xmlns="http://www.w3.org/2000/svg" className="h-4 w-4 inline-block mr-1" fill="none" viewBox="0 0 24 24" stroke="currentColor">
<path strokeLinecap="round" strokeLinejoin="round" strokeWidth="2" d="M12 2C8.13401 2 5 5.13401 5 9C5 14.25 12 22 12 22C12 22 19 14.25 19 9C19 5.13401 15.866 2 12 2ZM12 11C10.3431 11 9 9.65685 9 8C9 6.34315 10.3431 5 12 5C13.6569 5 15 6.34315 15 8C15 9.65685 13.6569 11 12 11Z" />
</svg>
{event.location}
</div>
</div>
Expand Down

0 comments on commit 82d95fa

Please sign in to comment.