diff --git a/client/src/Pages/Infrastructure/Monitors/Components/MonitorsTableMenu/index.jsx b/client/src/Pages/Infrastructure/Monitors/Components/MonitorsTableMenu/index.jsx
index 9875e0697..76440f02d 100644
--- a/client/src/Pages/Infrastructure/Monitors/Components/MonitorsTableMenu/index.jsx
+++ b/client/src/Pages/Infrastructure/Monitors/Components/MonitorsTableMenu/index.jsx
@@ -58,17 +58,21 @@ const InfrastructureMenu = ({ monitor, isAdmin, updateCallback }) => {
const openConfigure = (id) => {
navigate(`/infrastructure/configure/${id}`);
- }
+ };
const handlePause = async () => {
try {
await pauseMonitor({ monitorId: monitor.id });
- createToast({ body: `Monitor ${monitor.isActive ? "paused" : "resumed"} successfully.` });
+ createToast({
+ body: `Monitor ${monitor.isActive ? "paused" : "resumed"} successfully.`,
+ });
updateCallback();
} catch (error) {
- createToast({ body: `Failed to ${monitor.isActive ? "pause" : "resume"} monitor.` });
+ createToast({
+ body: `Failed to ${monitor.isActive ? "pause" : "resume"} monitor.`,
+ });
}
- }
+ };
const handleRemove = async () => {
try {
@@ -122,13 +126,22 @@ const InfrastructureMenu = ({ monitor, isAdmin, updateCallback }) => {
}}
>
- {isAdmin && }
+ {isAdmin && (
+
+ )}
{isAdmin && (
)}
- {isAdmin && }
+ {isAdmin && (
+
+ )}