Added first round of analytics and event tracking BOD-190
This commit is contained in:
@@ -4,12 +4,15 @@ import { Button, notification } from "antd";
|
||||
import { DeleteFilled } from "@ant-design/icons";
|
||||
import { useMutation } from "@apollo/react-hooks";
|
||||
import { DELETE_SCOREBOARD_ENTRY } from "../../graphql/scoreboard.queries";
|
||||
import { logImEXEvent } from "../../firebase/firebase.utils";
|
||||
|
||||
export default function ScoreboardRemoveButton({ scoreboardId }) {
|
||||
const { t } = useTranslation();
|
||||
const [deleteScoreboardEntry] = useMutation(DELETE_SCOREBOARD_ENTRY);
|
||||
const [loading, setLoading] = useState(false);
|
||||
const handleDelete = async (e) => {
|
||||
logImEXEvent("scoreboard_remove_job");
|
||||
|
||||
e.stopPropagation();
|
||||
setLoading(true);
|
||||
const result = await deleteScoreboardEntry({
|
||||
|
||||
Reference in New Issue
Block a user