Removal of old code

This commit is contained in:
Br0wnHammer committed 2025-07-24 01:56:05 +05:30
1 parent b7093b5de5
commit 7236e85321
2 files changed
+1 -58

No files matched your search

+1 -15
View File
@@ -11,11 +11,7 @@ import { Box, Button } from "@mui/material";
import { useTheme } from "@emotion/react";
import { useFetchMonitorsByTeamId } from "../../Hooks/monitorHooks";
import { useFetchChecksSummaryByTeamId } from "../../Hooks/checkHooks";
import {
useAckAllChecks,
useAckMonitorChecks,
useAcknowledgeChecks,
} from "../../Hooks/checkHooks";
import { useAcknowledgeChecks } from "../../Hooks/checkHooks";
import { useState, useEffect } from "react";
import NetworkError from "../../Components/GenericFallback/NetworkError";
import { useTranslation } from "react-i18next";
@@ -38,8 +34,6 @@ const Incidents = () => {
const [updateTrigger, setUpdateTrigger] = useState(false);
//Hooks
const [ackAllChecks, ackAllLoading] = useAckAllChecks();
const [ackMonitorChecks, ackMonitorLoading] = useAckMonitorChecks();
const { acknowledge, isLoadingAcknowledge } = useAcknowledgeChecks();
//Utils
@@ -68,14 +62,6 @@ const Incidents = () => {
setMonitorLookup(monitorLookup);
}, [monitors]);
const handleAckAllChecks = () => {
if (selectedMonitor === "0") {
ackAllChecks(setUpdateTrigger);
} else {
ackMonitorChecks(selectedMonitor, setUpdateTrigger);
}
};
const handleAcknowledge = () => {
const monitorId = selectedMonitor === "0" ? null : selectedMonitor;
acknowledge(setUpdateTrigger, monitorId);