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,7 +1,6 @@
import { useMutation } from "@apollo/client";
import { Dropdown } from "antd";
import dayjs from "../../utils/day";
import React from "react";
import { useTranslation } from "react-i18next";
import { connect } from "react-redux";
import { createStructuredSelector } from "reselect";
@@ -14,7 +13,7 @@ const mapStateToProps = createStructuredSelector({
bodyshop: selectBodyshop
});
const mapDispatchToProps = (dispatch) => ({});
const mapDispatchToProps = () => ({});
export function ScheduleBlockDay({ date, children, refetch, bodyshop, alreadyBlocked }) {
const { t } = useTranslation();
@@ -39,7 +38,7 @@ export function ScheduleBlockDay({ date, children, refetch, bodyshop, alreadyBlo
variables: { app: [blockAppt] }
});
if (!!result.errors) {
if (result.errors) {
notification["error"]({
message: t("appointments.errors.blocking", {
message: JSON.stringify(result.errors)
@@ -47,7 +46,7 @@ export function ScheduleBlockDay({ date, children, refetch, bodyshop, alreadyBlo
});
}
if (!!refetch) refetch();
if (refetch) refetch();
}
};