mirror of
https://github.com/UiO-Gaming/mustaboard.git
synced 2026-11-05 13:56:52 +01:00
remove unused references 2
This commit is contained in:
1 parent
f82fe44722
commit
36db5fcfdd
3 files changed
+2
-9
No files matched your search
@@ -100,7 +100,7 @@ const EventCard: React.FC<EventCardProps> = ({
|
||||
const intervalId = setInterval(updateEvents, 60 * 1000);
|
||||
|
||||
return () => clearInterval(intervalId);
|
||||
}, []);
|
||||
}, [placeTimeAhead, recurringTimeAhead, specialTimeAhead]);
|
||||
|
||||
return (
|
||||
<div className="flex flex-col bg-foreground rounded-lg p-3">
|
||||
|
||||
@@ -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: "" };
|
||||
|
||||
|
||||
+1
-1
@@ -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");
|
||||
|
||||
Reference in new issue
Block a user