diff --git a/src/app/components/EventCard.tsx b/src/app/components/EventCard.tsx index d883ef6..a0ba8b5 100644 --- a/src/app/components/EventCard.tsx +++ b/src/app/components/EventCard.tsx @@ -100,7 +100,7 @@ const EventCard: React.FC = ({ const intervalId = setInterval(updateEvents, 60 * 1000); return () => clearInterval(intervalId); - }, []); + }, [placeTimeAhead, recurringTimeAhead, specialTimeAhead]); return (
diff --git a/src/app/components/InfoCard.tsx b/src/app/components/InfoCard.tsx index 110b90e..142270b 100644 --- a/src/app/components/InfoCard.tsx +++ b/src/app/components/InfoCard.tsx @@ -9,13 +9,6 @@ const InfoCard: React.FC = () => { telephone: string; } - interface Event { - name: string; - date: string; - time: string; - timeDiffMs?: number; - } - const data: Person[] = SanityPeople(); const person = data.find((person: Person) => person.telephone) || { name: "", telephone: "" }; diff --git a/src/app/page.tsx b/src/app/page.tsx index 3397394..6f371fa 100644 --- a/src/app/page.tsx +++ b/src/app/page.tsx @@ -94,7 +94,7 @@ export default function Home() { .map( (ts: { time: number; - data: { instant: { details: { air_temperature: any } } }; + data: { instant: { details: { air_temperature: number } } }; }) => { const date = new Date(ts.time); const hour = date.getHours().toString().padStart(2, "0");