From 134e54773621671c9175002548c135058b536e9f Mon Sep 17 00:00:00 2001 From: Alex Holliday Date: Fri, 13 Jun 2025 10:18:43 +0800 Subject: [PATCH] remove redux loading state --- .../Monitors/Components/MonitorsTableMenu/index.jsx | 3 --- 1 file changed, 3 deletions(-) diff --git a/client/src/Pages/Infrastructure/Monitors/Components/MonitorsTableMenu/index.jsx b/client/src/Pages/Infrastructure/Monitors/Components/MonitorsTableMenu/index.jsx index bce3020a6..15193da3e 100644 --- a/client/src/Pages/Infrastructure/Monitors/Components/MonitorsTableMenu/index.jsx +++ b/client/src/Pages/Infrastructure/Monitors/Components/MonitorsTableMenu/index.jsx @@ -1,7 +1,6 @@ /* TODO I basically copied and pasted this component from the actionsMenu. Check how we can make it reusable */ import { useRef, useState } from "react"; -import { useSelector } from "react-redux"; import { useTheme } from "@emotion/react"; import { useNavigate } from "react-router-dom"; import { createToast } from "../../../../../Utils/toastUtils"; @@ -30,7 +29,6 @@ const InfrastructureMenu = ({ monitor, isAdmin, updateCallback }) => { const [isOpen, setIsOpen] = useState(false); const [isDialogOpen, setIsDialogOpen] = useState(false); const theme = useTheme(); - const { isLoading } = useSelector((state) => state.uptimeMonitors); const openMenu = (e) => { e.stopPropagation(); @@ -117,7 +115,6 @@ const InfrastructureMenu = ({ monitor, isAdmin, updateCallback }) => { onCancel={cancelRemove} confirmationButtonLabel="Delete" onConfirm={handleRemove} - isLoading={isLoading} modelTitle="modal-delete-monitor" modelDescription="delete-monitor-confirmation" />