mirror of
https://github.com/fleetdm/fleet
synced 2026-05-23 17:08:53 +00:00
misc cleanup (#32566)
misc cleanups --------- Co-authored-by: Jacob Shandling <jacob@fleetdm.com>
This commit is contained in:
parent
29475ab55e
commit
47e5142c2f
2 changed files with 1 additions and 10 deletions
|
|
@ -75,10 +75,6 @@ const ActivityFeed = ({
|
|||
setSoftwareDetails,
|
||||
] = useState<IActivityDetails | null>(null);
|
||||
const [vppDetails, setVppDetails] = useState<IActivityDetails | null>(null);
|
||||
const [
|
||||
scriptBatchExecutionDetails,
|
||||
setScriptBatchExecutionDetails,
|
||||
] = useState<IActivityDetails | null>(null);
|
||||
|
||||
const queryShown = useRef("");
|
||||
const queryImpact = useRef<string | undefined>(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 ?? "";
|
||||
|
|
|
|||
|
|
@ -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";
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue