Lint all the things
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
import { useMutation } from "@apollo/client";
|
||||
import { Button } 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";
|
||||
@@ -25,7 +25,7 @@ export function JobsAdminUnvoid({ insertAuditTrail, bodyshop, job, currentUser }
|
||||
const [mutationUnvoidJob] = useMutation(UNVOID_JOB);
|
||||
const notification = useNotification();
|
||||
|
||||
const handleUpdate = async (values) => {
|
||||
const handleUpdate = async () => {
|
||||
setLoading(true);
|
||||
const result = await mutationUnvoidJob({
|
||||
variables: {
|
||||
@@ -56,10 +56,8 @@ export function JobsAdminUnvoid({ insertAuditTrail, bodyshop, job, currentUser }
|
||||
};
|
||||
|
||||
return (
|
||||
<>
|
||||
<Button loading={loading} disabled={!job.voided} onClick={handleUpdate}>
|
||||
{t("jobs.actions.unvoid")}
|
||||
</Button>
|
||||
</>
|
||||
<Button loading={loading} disabled={!job.voided} onClick={handleUpdate}>
|
||||
{t("jobs.actions.unvoid")}
|
||||
</Button>
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user