Lint all the things
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
import { useMutation } from "@apollo/client";
|
||||
import { Button, Form, Popover, Spin } from "antd";
|
||||
import React, { useState } from "react";
|
||||
import { useState } from "react";
|
||||
import { useTranslation } from "react-i18next";
|
||||
import { connect } from "react-redux";
|
||||
import { createStructuredSelector } from "reselect";
|
||||
@@ -16,14 +16,7 @@ const mapStateToProps = createStructuredSelector({
|
||||
bodyshop: selectBodyshop
|
||||
});
|
||||
|
||||
export function PartsOrderBackorderEta({
|
||||
backordered_eta,
|
||||
partsOrderStatus,
|
||||
partsLineId,
|
||||
jobLineId,
|
||||
disabled,
|
||||
bodyshop
|
||||
}) {
|
||||
export function PartsOrderBackorderEta({ backordered_eta, partsOrderStatus, partsLineId, disabled, bodyshop }) {
|
||||
const [visibility, setVisibility] = useState(false);
|
||||
const [loading, setLoading] = useState(false);
|
||||
const [updateBoDate] = useMutation(MUTATION_UPDATE_BO_ETA);
|
||||
@@ -44,7 +37,7 @@ export function PartsOrderBackorderEta({
|
||||
}
|
||||
});
|
||||
|
||||
if (!!result.errors) {
|
||||
if (result.errors) {
|
||||
notification["error"]({
|
||||
message: t("parts_orders.errors.backordering", {
|
||||
message: JSON.stringify(result.errors)
|
||||
@@ -56,7 +49,7 @@ export function PartsOrderBackorderEta({
|
||||
setLoading(false);
|
||||
};
|
||||
|
||||
const handlePopover = (e) => {
|
||||
const handlePopover = () => {
|
||||
setVisibility(true);
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user