mirror of
https://github.com/0xShay/ticketchain.git
synced 2026-01-11 13:13:25 +00:00
Fix warnings
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user