Added first round of analytics and event tracking BOD-190
This commit is contained in:
@@ -4,6 +4,7 @@ import { DeleteFilled } from "@ant-design/icons";
|
||||
import { DELETE_TIME_TICKET } from "../../graphql/timetickets.queries";
|
||||
import { useTranslation } from "react-i18next";
|
||||
import { useMutation } from "@apollo/react-hooks";
|
||||
import { logImEXEvent } from "../../firebase/firebase.utils";
|
||||
|
||||
export default function TechJobClockoutDelete({
|
||||
timeTicketId,
|
||||
@@ -12,6 +13,8 @@ export default function TechJobClockoutDelete({
|
||||
const [deleteTimeTicket] = useMutation(DELETE_TIME_TICKET);
|
||||
const { t } = useTranslation();
|
||||
const handleDelete = async () => {
|
||||
logImEXEvent("tech_clock_delete");
|
||||
|
||||
const result = await deleteTimeTicket({
|
||||
variables: { id: timeTicketId },
|
||||
refetchQueries: ["QUERY_ACTIVE_TIME_TICKETS"],
|
||||
|
||||
Reference in New Issue
Block a user