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

@@ -2,7 +2,6 @@ import { MinusCircleTwoTone, PlusCircleTwoTone, SyncOutlined } from "@ant-design
import { useQuery } from "@apollo/client";
import { Button, Card, Space, Table } from "antd";
import queryString from "query-string";
import React from "react";
import { useTranslation } from "react-i18next";
import { connect } from "react-redux";
import { useLocation, useNavigate } from "react-router-dom";
@@ -20,7 +19,7 @@ const mapStateToProps = createStructuredSelector({
technician: selectTechnician,
bodyshop: selectBodyshop
});
const mapDispatchToProps = (dispatch) => ({});
const mapDispatchToProps = () => ({});
export function TechDispatchedParts({ technician, bodyshop }) {
const searchParams = queryString.parse(useLocation().search);
@@ -83,12 +82,20 @@ export function TechDispatchedParts({ technician, bodyshop }) {
title: t("general.labels.actions"),
dataIndex: "actions",
key: "actions",
render: (text, record) => <Button onClick={() => {}}>{t("timetickets.actions.claimtasks")}</Button>
render: () => (
<Button
onClick={() => {
// NO OP
}}
>
{t("timetickets.actions.claimtasks")}
</Button>
)
}
]
: [])
];
const handleTableChange = (pagination, filters, sorter) => {
const handleTableChange = (pagination) => {
searchParams.page = pagination.current;
history({ search: queryString.stringify(searchParams) });
};
@@ -107,7 +114,7 @@ export function TechDispatchedParts({ technician, bodyshop }) {
loading={loading}
pagination={{
pageSize: 25,
current: parseInt(page || 1),
current: parseInt(page || 1, 10),
total: data ? data.parts_dispatch_aggregate.aggregate.count : 0,
showSizeChanger: false
}}
@@ -118,7 +125,7 @@ export function TechDispatchedParts({ technician, bodyshop }) {
onChange={handleTableChange}
expandable={{
expandedRowRender: (record) => <PartsDispatchExpander dispatch={record} />,
rowExpandable: (record) => true,
rowExpandable: () => true,
//expandRowByClick: true,
expandIcon: ({ expanded, onExpand, record }) =>
expanded ? (