Lint all the things

This commit is contained in:
Dave
2025-08-19 16:23:29 -04:00
parent f6d6b548be
commit 33fb60ca1a
640 changed files with 2129 additions and 3927 deletions

View File

@@ -1,5 +1,4 @@
import { useMutation } from "@apollo/client";
import React from "react";
import { useTranslation } from "react-i18next";
import { useDispatch } from "react-redux";
import { logImEXEvent } from "../../firebase/firebase.utils";
@@ -17,7 +16,7 @@ export default function ScheduleEventContainer({ bodyshop, event, refetch }) {
const [updateJob] = useMutation(UPDATE_JOB);
const notification = useNotification();
const handleCancel = async ({ id, lost_sale_reason }) => {
const handleCancel = async ({ lost_sale_reason }) => {
logImEXEvent("schedule_cancel_appt");
const cancelAppt = await cancelAppointment({
@@ -27,7 +26,7 @@ export default function ScheduleEventContainer({ bodyshop, event, refetch }) {
message: t("appointments.successes.canceled")
});
if (!!cancelAppt.errors) {
if (cancelAppt.errors) {
notification["error"]({
message: t("appointments.errors.canceling", {
message: JSON.stringify(cancelAppt.errors)
@@ -59,7 +58,7 @@ export default function ScheduleEventContainer({ bodyshop, event, refetch }) {
})
);
}
if (!!jobUpdate.errors) {
if (jobUpdate.errors) {
notification["error"]({
message: t("jobs.errors.updating", {
message: JSON.stringify(jobUpdate.errors)