remove unused

This commit is contained in:
Alex Holliday committed 2026-09-02 09:50:47 -07:00
1 parent 786c803847
commit cdd4953e03
3 files changed
+6 -10

No files matched your search

@@ -2,7 +2,6 @@ import Stack from "@mui/material/Stack";
import { StatBox } from "@/Components/design-elements";
// Types
import type { Monitor } from "@/Types/Monitor";
// Hooks
import { useTheme } from "@mui/material";
@@ -13,10 +12,8 @@ import type { DockerContainerInfo } from "@/Types/Check";
import { formatDuration } from "@/Utils/TimeUtils";
export const DockerContainerStatusBoxes = ({
monitor,
container,
}: {
monitor: Monitor | undefined;
container: DockerContainerInfo | undefined;
}) => {
const { t } = useTranslation();
@@ -12,7 +12,7 @@ import useMediaQuery from "@mui/material/useMediaQuery";
import type { Theme } from "@mui/material";
import type { TFunction } from "i18next";
import type { DockerContainerStats } from "@/Types/Monitor";
import { LAYOUT, SPACING } from "@/Utils/Theme/constants";
import { LAYOUT } from "@/Utils/Theme/constants";
import { formatPercentage } from "@/Utils/FormatUtils";
import prettyBytes from "pretty-bytes";
import { BaseBox } from "@/Components/design-elements";
@@ -34,12 +34,11 @@ const DockerDetailsPage = ({ open = "overview" }: DockerContainerDetailsProps) =
? `/monitors/docker/details/${monitorId}/containers/${containerName}?dateRange=${dateRange}`
: null;
const { data: containerData, refetch: refetchContainer } =
useGet<DockerContainerResponse>(
containerDetailsUrl,
{},
{ refreshInterval: 10000, keepPreviousData: true }
);
const { data: containerData } = useGet<DockerContainerResponse>(
containerDetailsUrl,
{},
{ refreshInterval: 10000, keepPreviousData: true }
);
const monitor = containerData?.monitor;
if (!monitor) return null;