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,6 +1,6 @@
import { useMutation } from "@apollo/client";
import { Button, Form, Modal, Space } from "antd";
import React, { useEffect, useState } from "react";
import { useEffect, useState } from "react";
import { useTranslation } from "react-i18next";
import { connect } from "react-redux";
import { createStructuredSelector } from "reselect";
@@ -36,7 +36,7 @@ function PaymentModalContainer({ paymentModal, toggleModalVisible, bodyshop }) {
const [loading, setLoading] = useState(false);
const handleFinish = async (values) => {
const { useStripe, sendby, ...paymentObj } = values;
const { sendby, ...paymentObj } = values;
setLoading(true);
let updatedPayment; //Moved up from if statement for greater scope.
@@ -50,7 +50,7 @@ function PaymentModalContainer({ paymentModal, toggleModalVisible, bodyshop }) {
}
});
if (!!!newPayment.errors) {
if (!newPayment.errors) {
notification["success"]({ message: t("payments.successes.payment") });
} else {
notification["error"]({ message: t("payments.errors.payment") });
@@ -82,7 +82,7 @@ function PaymentModalContainer({ paymentModal, toggleModalVisible, bodyshop }) {
}
});
if (!!!updatedPayment.errors) {
if (!updatedPayment.errors) {
notification["success"]({ message: t("payments.successes.paymentupdate") });
} else {
notification["error"]({ message: t("payments.errors.paymentupdate") });
@@ -149,7 +149,7 @@ function PaymentModalContainer({ paymentModal, toggleModalVisible, bodyshop }) {
<Button loading={loading} onClick={() => form.submit()}>
{t("general.actions.save")}
</Button>
{paymentModal.context && paymentModal.context.id ? null : (
{paymentModal.context?.id ? null : (
<Button
type="primary"
loading={loading}