From 47e5142c2f7205797d4cc1101996699afa0f7bd1 Mon Sep 17 00:00:00 2001 From: jacobshandling <61553566+jacobshandling@users.noreply.github.com> Date: Thu, 4 Sep 2025 09:05:43 -0700 Subject: [PATCH] misc cleanup (#32566) misc cleanups --------- Co-authored-by: Jacob Shandling --- .../DashboardPage/cards/ActivityFeed/ActivityFeed.tsx | 10 +--------- .../hosts/details/DeviceUserPage/DeviceUserPage.tsx | 1 - 2 files changed, 1 insertion(+), 10 deletions(-) diff --git a/frontend/pages/DashboardPage/cards/ActivityFeed/ActivityFeed.tsx b/frontend/pages/DashboardPage/cards/ActivityFeed/ActivityFeed.tsx index 9b7898f5f6..c35e359cbc 100644 --- a/frontend/pages/DashboardPage/cards/ActivityFeed/ActivityFeed.tsx +++ b/frontend/pages/DashboardPage/cards/ActivityFeed/ActivityFeed.tsx @@ -75,10 +75,6 @@ const ActivityFeed = ({ setSoftwareDetails, ] = useState(null); const [vppDetails, setVppDetails] = useState(null); - const [ - scriptBatchExecutionDetails, - setScriptBatchExecutionDetails, - ] = useState(null); const queryShown = useRef(""); const queryImpact = useRef(undefined); @@ -125,11 +121,7 @@ const ActivityFeed = ({ setPageIndex(pageIndex + 1); }; - const handleDetailsClick = ({ - type, - details, - created_at, - }: IShowActivityDetailsData) => { + const handleDetailsClick = ({ type, details }: IShowActivityDetailsData) => { switch (type) { case ActivityType.LiveQuery: queryShown.current = details?.query_sql ?? ""; diff --git a/frontend/pages/hosts/details/DeviceUserPage/DeviceUserPage.tsx b/frontend/pages/hosts/details/DeviceUserPage/DeviceUserPage.tsx index 764e65f121..70fb411c65 100644 --- a/frontend/pages/hosts/details/DeviceUserPage/DeviceUserPage.tsx +++ b/frontend/pages/hosts/details/DeviceUserPage/DeviceUserPage.tsx @@ -4,7 +4,6 @@ import { useQuery } from "react-query"; import { Tab, Tabs, TabList, TabPanel } from "react-tabs"; import { pick } from "lodash"; -import Modal from "components/Modal"; import { NotificationContext } from "context/notification";