From ad85df4c31b559094650b12946ef7a91424ee2d1 Mon Sep 17 00:00:00 2001 From: Nicolas Mowen Date: Wed, 3 Apr 2024 14:58:18 -0600 Subject: [PATCH] remove unused for now --- web/src/components/graph/SystemGraph.tsx | 3 --- web/src/pages/System.tsx | 5 ----- 2 files changed, 8 deletions(-) diff --git a/web/src/components/graph/SystemGraph.tsx b/web/src/components/graph/SystemGraph.tsx index 4b8dd8045..7f4cf5cc5 100644 --- a/web/src/components/graph/SystemGraph.tsx +++ b/web/src/components/graph/SystemGraph.tsx @@ -26,9 +26,6 @@ export default function SystemGraph({ const formatTime = useCallback( (val: unknown) => { - console.log( - `inside the check we have ${updateTimes.length} times and we are looking for ${val}`, - ); const date = new Date(updateTimes[Math.round(val as number)] * 1000); return `${date.getHours() > 12 ? date.getHours() - 12 : date.getHours()}:${date.getMinutes()}`; }, diff --git a/web/src/pages/System.tsx b/web/src/pages/System.tsx index b8343e1d0..a7771532a 100644 --- a/web/src/pages/System.tsx +++ b/web/src/pages/System.tsx @@ -4,7 +4,6 @@ import { useEffect, useMemo, useState } from "react"; import SystemGraph from "@/components/graph/SystemGraph"; import { useFrigateStats } from "@/api/ws"; import TimeAgo from "@/components/dynamic/TimeAgo"; -import { FrigateConfig } from "@/types/frigateConfig"; import { DetectorCpuThreshold, DetectorMemThreshold, @@ -598,7 +597,3 @@ function GeneralMetrics({ lastUpdated, setLastUpdated }: GeneralMetricsProps) { ); } - -function CameraMetrics() { - const { data: config } = useSWR("config"); -}