Added first round of analytics and event tracking BOD-190
This commit is contained in:
@@ -1,12 +1,13 @@
|
||||
import React, { useState } from "react";
|
||||
import { Button, notification } from "antd";
|
||||
import { useMutation } from "@apollo/react-hooks";
|
||||
import { UPDATE_JOB } from "../../graphql/jobs.queries";
|
||||
import { Button, notification } from "antd";
|
||||
import React, { useState } from "react";
|
||||
import { useTranslation } from "react-i18next";
|
||||
|
||||
import { selectBodyshop } from "../../redux/user/user.selectors";
|
||||
import { connect } from "react-redux";
|
||||
import { createStructuredSelector } from "reselect";
|
||||
import { UPDATE_JOB } from "../../graphql/jobs.queries";
|
||||
import { selectBodyshop } from "../../redux/user/user.selectors";
|
||||
import { logImEXEvent } from "../../firebase/firebase.utils";
|
||||
|
||||
const mapStateToProps = createStructuredSelector({
|
||||
bodyshop: selectBodyshop,
|
||||
});
|
||||
@@ -26,6 +27,8 @@ export function JobsCloseSaveButton({
|
||||
const [updateJob] = useMutation(UPDATE_JOB);
|
||||
|
||||
const handleSave = async () => {
|
||||
logImEXEvent("jobs_close_save");
|
||||
|
||||
setLoading(true);
|
||||
|
||||
const result = await updateJob({
|
||||
|
||||
Reference in New Issue
Block a user