From 969c1ef9b53f6f6d29473bb2d6e9abe852de5af5 Mon Sep 17 00:00:00 2001 From: Harsheel Singh Date: Wed, 17 Jul 2024 18:29:22 +1200 Subject: [PATCH] fix: Fixed build error --- web/src/pages/Home.tsx | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/web/src/pages/Home.tsx b/web/src/pages/Home.tsx index 376a0dc..d8dbcc3 100644 --- a/web/src/pages/Home.tsx +++ b/web/src/pages/Home.tsx @@ -13,21 +13,21 @@ import { Autoplay, Pagination } from "swiper/modules"; import SponsorCard from "../components/SponsorCard"; import axios from "axios"; import { useEffect, useState } from "react"; -import { EventType, SponsorType } from "../utils/FrontendTypes"; +import { SponsorType } from "../utils/FrontendTypes"; export default function Home() { - const [events, setEvents] = useState([]); + // const [events, setEvents] = useState([]); const [sponsors, setSponsors] = useState([]); useEffect(() => { - async function fetchEvents() { - try { - const response = await axios.get("http://localhost:4000/api/events/"); - setEvents(response.data); - } catch (error) { - console.error("Error fetching event data", error); - } - } + // async function fetchEvents() { + // try { + // const response = await axios.get("http://localhost:4000/api/events/"); + // setEvents(response.data); + // } catch (error) { + // console.error("Error fetching event data", error); + // } + // } async function fetchSponsors() { try { const response = await axios.get("http://localhost:4000/api/sponsors/"); @@ -38,7 +38,7 @@ export default function Home() { } fetchSponsors(); - fetchEvents(); + // fetchEvents(); }, []); return (