mirror of
https://github.com/0xShay/ticketchain.git
synced 2026-01-11 21:23:24 +00:00
Fix warnings
This commit is contained in:
@@ -149,7 +149,7 @@ const EventsPage: React.FC = () => {
|
|||||||
return () => {
|
return () => {
|
||||||
document.removeEventListener('mousedown', handleClickOutside);
|
document.removeEventListener('mousedown', handleClickOutside);
|
||||||
};
|
};
|
||||||
}, []);
|
}, [searchParams]);
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div className="relative min-h-screen overflow-hidden">
|
<div className="relative min-h-screen overflow-hidden">
|
||||||
|
|||||||
@@ -65,8 +65,6 @@ export default function Home() {
|
|||||||
name="FAB XO Halloween"
|
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!!!"
|
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"
|
location="Birmingham, UK"
|
||||||
capacity={100}
|
|
||||||
ticketsSold={50}
|
|
||||||
eventStartDate={1729980000}
|
eventStartDate={1729980000}
|
||||||
eventHost="0x225C73C8c536C4F5335a2C1abECa95b0f221eeF6"
|
eventHost="0x225C73C8c536C4F5335a2C1abECa95b0f221eeF6"
|
||||||
imageURL={"https://www.guildofstudents.com/asset/Event/7572/Halloween-Fab-XO-Web-Event.jpg"}
|
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"
|
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."
|
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"
|
location="Birmingham, UK"
|
||||||
capacity={100}
|
|
||||||
ticketsSold={50}
|
|
||||||
eventStartDate={1730307600}
|
eventStartDate={1730307600}
|
||||||
eventHost="0x225C73C8c536C4F5335a2C1abECa95b0f221eeF6"
|
eventHost="0x225C73C8c536C4F5335a2C1abECa95b0f221eeF6"
|
||||||
imageURL={"https://www.guildofstudents.com/asset/Event/41187/Spooktacular-Web-Event-2024.png"}
|
imageURL={"https://www.guildofstudents.com/asset/Event/41187/Spooktacular-Web-Event-2024.png"}
|
||||||
@@ -85,8 +81,6 @@ export default function Home() {
|
|||||||
name="Housing Fair"
|
name="Housing Fair"
|
||||||
description="We’re hosting a Housing Fair, so make sure you save the date! Whether you’re living in student accommodation or the local community, this will be a great place to start as you begin thinking about where you’ll be living next year."
|
description="We’re hosting a Housing Fair, so make sure you save the date! Whether you’re living in student accommodation or the local community, this will be a great place to start as you begin thinking about where you’ll be living next year."
|
||||||
location="Birmingham, UK"
|
location="Birmingham, UK"
|
||||||
capacity={100}
|
|
||||||
ticketsSold={50}
|
|
||||||
eventStartDate={1730804400}
|
eventStartDate={1730804400}
|
||||||
eventHost="0x225C73C8c536C4F5335a2C1abECa95b0f221eeF6"
|
eventHost="0x225C73C8c536C4F5335a2C1abECa95b0f221eeF6"
|
||||||
imageURL={"https://www.guildofstudents.com/asset/Event/41111/Housing-Fair-Web-Event.png"}
|
imageURL={"https://www.guildofstudents.com/asset/Event/41111/Housing-Fair-Web-Event.png"}
|
||||||
|
|||||||
@@ -13,19 +13,17 @@ interface props {
|
|||||||
name: string;
|
name: string;
|
||||||
description: string;
|
description: string;
|
||||||
location: string;
|
location: string;
|
||||||
capacity: number;
|
|
||||||
ticketsSold: number;
|
|
||||||
eventStartDate: number;
|
eventStartDate: number;
|
||||||
eventHost: string;
|
eventHost: string;
|
||||||
imageURL: string | null;
|
imageURL: string | null;
|
||||||
}
|
}
|
||||||
|
|
||||||
const FeaturedEvent = ({
|
const FeaturedEvent = ({
|
||||||
name, description, location, capacity, ticketsSold, eventStartDate, eventHost, imageURL
|
name, description, location, eventStartDate, eventHost, imageURL
|
||||||
}: props) => {
|
}: props) => {
|
||||||
return <Card>
|
return <Card>
|
||||||
<CardHeader>
|
<CardHeader>
|
||||||
{imageURL && <img src={imageURL}></img>}
|
{imageURL && <img src={imageURL} alt={name}></img>}
|
||||||
<CardTitle>
|
<CardTitle>
|
||||||
{name}
|
{name}
|
||||||
</CardTitle>
|
</CardTitle>
|
||||||
|
|||||||
Reference in New Issue
Block a user