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

@@ -149,7 +149,7 @@ const EventsPage: React.FC = () => {
return () => {
document.removeEventListener('mousedown', handleClickOutside);
};
}, []);
}, [searchParams]);
return (
<div className="relative min-h-screen overflow-hidden">

View File

@@ -65,8 +65,6 @@ export default function Home() {
name="FAB XO Halloween"
description="Halloween is upon us and is one of the biggest nights of the FAB XO calendar. Fancy dress is encouraged! So have your fancy dress ready and we look forward to seeing who have the best fancy dress on the night! As a special treat we will be serving our very own witches brew!!!"
location="Birmingham, UK"
capacity={100}
ticketsSold={50}
eventStartDate={1729980000}
eventHost="0x225C73C8c536C4F5335a2C1abECa95b0f221eeF6"
imageURL={"https://www.guildofstudents.com/asset/Event/7572/Halloween-Fab-XO-Web-Event.jpg"}
@@ -75,8 +73,6 @@ export default function Home() {
name="Halls Halloween Spooktacular"
description="Put on your spookiest costume and head on down to Pritchatts Park and join your Event Activators for our ResLife SPOOKTACULAR on Wednesday 30th October 5-8pm."
location="Birmingham, UK"
capacity={100}
ticketsSold={50}
eventStartDate={1730307600}
eventHost="0x225C73C8c536C4F5335a2C1abECa95b0f221eeF6"
imageURL={"https://www.guildofstudents.com/asset/Event/41187/Spooktacular-Web-Event-2024.png"}
@@ -85,8 +81,6 @@ export default function Home() {
name="Housing Fair"
description="Were hosting a Housing Fair, so make sure you save the date! Whether youre living in student accommodation or the local community, this will be a great place to start as you begin thinking about where youll be living next year."
location="Birmingham, UK"
capacity={100}
ticketsSold={50}
eventStartDate={1730804400}
eventHost="0x225C73C8c536C4F5335a2C1abECa95b0f221eeF6"
imageURL={"https://www.guildofstudents.com/asset/Event/41111/Housing-Fair-Web-Event.png"}

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>