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