Fix warnings

This commit is contained in:
2024-10-26 20:34:01 +01:00
parent 6cb2481bc6
commit 6dd271d9a8
3 changed files with 3 additions and 11 deletions

View File

@@ -13,19 +13,17 @@ interface props {
name: string;
description: string;
location: string;
capacity: number;
ticketsSold: number;
eventStartDate: number;
eventHost: string;
imageURL: string | null;
}
const FeaturedEvent = ({
name, description, location, capacity, ticketsSold, eventStartDate, eventHost, imageURL
name, description, location, eventStartDate, eventHost, imageURL
}: props) => {
return <Card>
<CardHeader>
{imageURL && <img src={imageURL}></img>}
{imageURL && <img src={imageURL} alt={name}></img>}
<CardTitle>
{name}
</CardTitle>