Lint all the things
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
import { Table } from "antd";
|
||||
import Dinero from "dinero.js";
|
||||
import React, { useMemo } from "react";
|
||||
import { useMemo } from "react";
|
||||
import { useTranslation } from "react-i18next";
|
||||
|
||||
import { connect } from "react-redux";
|
||||
@@ -13,7 +13,7 @@ const mapStateToProps = createStructuredSelector({
|
||||
//currentUser: selectCurrentUser
|
||||
bodyshop: selectBodyshop
|
||||
});
|
||||
const mapDispatchToProps = (dispatch) => ({
|
||||
const mapDispatchToProps = () => ({
|
||||
//setUserLanguage: language => dispatch(setUserLanguage(language))
|
||||
});
|
||||
export default connect(mapStateToProps, mapDispatchToProps)(JobTotalsTableTotals);
|
||||
@@ -181,7 +181,7 @@ export function JobTotalsTableTotals({ bodyshop, job }) {
|
||||
total: job.job_totals.totals.custPayable.federal_tax
|
||||
}
|
||||
],
|
||||
rome: [],
|
||||
rome: []
|
||||
}),
|
||||
{
|
||||
key: t("jobs.fields.other_amount_payable"),
|
||||
@@ -219,7 +219,6 @@ export function JobTotalsTableTotals({ bodyshop, job }) {
|
||||
}
|
||||
];
|
||||
// TODO: was removed by Patrick during a CI bug fix.
|
||||
// eslint-disable-next-line react-hooks/exhaustive-deps
|
||||
}, [job.job_totals, job.cieca_pft, t, bodyshop.md_responsibility_centers]);
|
||||
|
||||
const columns = [
|
||||
@@ -228,7 +227,7 @@ export function JobTotalsTableTotals({ bodyshop, job }) {
|
||||
dataIndex: "key",
|
||||
key: "key",
|
||||
width: "80%",
|
||||
onCell: (record, rowIndex) => {
|
||||
onCell: (record) => {
|
||||
return { style: { fontWeight: record.bold && "bold" } };
|
||||
}
|
||||
},
|
||||
@@ -239,7 +238,7 @@ export function JobTotalsTableTotals({ bodyshop, job }) {
|
||||
align: "right",
|
||||
render: (text, record) => (record.render ? record.render : Dinero(record.total).toFormat()),
|
||||
width: "20%",
|
||||
onCell: (record, rowIndex) => {
|
||||
onCell: (record) => {
|
||||
return { style: { fontWeight: record.bold && "bold" } };
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user