Added first round of analytics and event tracking BOD-190
This commit is contained in:
@@ -3,11 +3,14 @@ import { useMutation } from "@apollo/react-hooks";
|
||||
import { UPDATE_JOB } from "../../graphql/jobs.queries";
|
||||
import { Button, notification } from "antd";
|
||||
import { useTranslation } from "react-i18next";
|
||||
import { logImEXEvent } from "../../firebase/firebase.utils";
|
||||
|
||||
export default function ProductionRemoveButton({ jobId }) {
|
||||
const [removeJobFromProduction] = useMutation(UPDATE_JOB);
|
||||
const { t } = useTranslation();
|
||||
const handleRemoveFromProd = () => {
|
||||
logImEXEvent("production_remove_job");
|
||||
|
||||
removeJobFromProduction({
|
||||
variables: { jobId: jobId, job: { inproduction: false } },
|
||||
}).catch((error) => {
|
||||
|
||||
Reference in New Issue
Block a user