Lint all the things
This commit is contained in:
@@ -1,6 +1,5 @@
|
||||
import { useMutation, useQuery } from "@apollo/client";
|
||||
import React, { useState } from "react";
|
||||
//import SpinComponent from "../../components/loading-spinner/loading-spinner.component";
|
||||
import { useState } from "react";
|
||||
import { useTranslation } from "react-i18next";
|
||||
import { connect } from "react-redux";
|
||||
import { createStructuredSelector } from "reselect";
|
||||
@@ -39,7 +38,7 @@ export function JobNotesContainer({ jobId, insertAuditTrail }) {
|
||||
variables: {
|
||||
noteId: id
|
||||
}
|
||||
}).then((r) => {
|
||||
}).then(() => {
|
||||
refetch();
|
||||
notification["success"]({
|
||||
message: t("notes.successes.deleted")
|
||||
@@ -60,7 +59,7 @@ export function JobNotesContainer({ jobId, insertAuditTrail }) {
|
||||
jobId={jobId}
|
||||
loading={loading}
|
||||
data={data ? data.jobs_by_pk.notes : null}
|
||||
relatedRos={data ? data.jobs_by_pk.vehicle && data.jobs_by_pk.vehicle.jobs : null}
|
||||
relatedRos={data ? data.jobs_by_pk.vehicle?.jobs : null}
|
||||
refetch={refetch}
|
||||
deleteLoading={deleteLoading}
|
||||
handleNoteDelete={handleNoteDelete}
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
import { AuditOutlined, DeleteFilled, EditFilled, EyeInvisibleFilled, WarningFilled } from "@ant-design/icons";
|
||||
import { Button, Card, Form, Input, Space, Table } from "antd";
|
||||
import React from "react";
|
||||
import { useTranslation } from "react-i18next";
|
||||
import { connect } from "react-redux";
|
||||
import { createStructuredSelector } from "reselect";
|
||||
@@ -97,7 +96,7 @@ export function JobNotesComponent({
|
||||
dataIndex: "text",
|
||||
key: "text",
|
||||
ellipsis: true,
|
||||
render: (text, record) => <span style={{ whiteSpace: "pre-line" }}>{text}</span>
|
||||
render: (text) => <span style={{ whiteSpace: "pre-line" }}>{text}</span>
|
||||
},
|
||||
|
||||
{
|
||||
@@ -156,7 +155,7 @@ export function JobNotesComponent({
|
||||
}
|
||||
];
|
||||
|
||||
const handleTableChange = (pagination, filters, sorter) => {
|
||||
const handleTableChange = (pagination, filters) => {
|
||||
setFilter(filters);
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user