Uptime useFetchChecksByMonitor Integration
This commit is contained in:
1 parent
f47d3c2cd6
commit
bebbe5896d
1 file changed
+2
-2
@@ -18,7 +18,7 @@ import { useTheme } from "@emotion/react";
|
|||||||
import { useIsAdmin } from "../../../Hooks/useIsAdmin";
|
import { useIsAdmin } from "../../../Hooks/useIsAdmin";
|
||||||
import { useFetchUptimeMonitorById } from "../../../Hooks/monitorHooks";
|
import { useFetchUptimeMonitorById } from "../../../Hooks/monitorHooks";
|
||||||
import useCertificateFetch from "./Hooks/useCertificateFetch";
|
import useCertificateFetch from "./Hooks/useCertificateFetch";
|
||||||
import { useFetchChecks } from "../../../Hooks/checkHooks";
|
import { useFetchChecksByMonitor } from "../../../Hooks/checkHooksMonitor";
|
||||||
import { useTranslation } from "react-i18next";
|
import { useTranslation } from "react-i18next";
|
||||||
|
|
||||||
// Constants
|
// Constants
|
||||||
@@ -66,7 +66,7 @@ const UptimeDetails = () => {
|
|||||||
|
|
||||||
const monitorType = monitor?.type;
|
const monitorType = monitor?.type;
|
||||||
|
|
||||||
const [checks, checksCount, checksAreLoading, checksNetworkError] = useFetchChecks({
|
const [checks, checksCount, checksAreLoading, checksNetworkError] = useFetchChecksByMonitor({
|
||||||
monitorId,
|
monitorId,
|
||||||
type: monitorType,
|
type: monitorType,
|
||||||
sortOrder: "desc",
|
sortOrder: "desc",
|
||||||
|
|||||||
Reference in new issue
Block a user