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

@@ -1,6 +1,6 @@
import Icon, { CarOutlined, ScheduleOutlined, SearchOutlined, UserAddOutlined } from "@ant-design/icons";
import { Layout, Menu } from "antd";
import React, { useState } from "react";
import { useState } from "react";
import { useTranslation } from "react-i18next";
import { FaBusinessTime } from "react-icons/fa";
import { FiLogIn, FiLogOut } from "react-icons/fi";
@@ -51,7 +51,7 @@ export function TechSider({ technician, techLogout, bodyshop, setTimeTicketTaskC
{
key: "2",
icon: <SearchOutlined />,
disabled: !!!technician,
disabled: !technician,
label: <Link to={`/tech/joblookup`}>{t("menus.tech.joblookup")}</Link>
}
];
@@ -60,13 +60,13 @@ export function TechSider({ technician, techLogout, bodyshop, setTimeTicketTaskC
items.push(
{
key: "TechAssignedProdJobs",
disabled: !!!technician,
disabled: !technician,
icon: <UserAddOutlined />,
label: <Link to={`/tech/assigned`}> {t("menus.tech.assignedjobs")}</Link>
},
{
key: "3",
disabled: !!!technician,
disabled: !technician,
icon: <Icon component={FaBusinessTime} />,
onClick: () => {
setTimeTicketTaskContext({
@@ -80,7 +80,7 @@ export function TechSider({ technician, techLogout, bodyshop, setTimeTicketTaskC
} else {
items.push({
key: "3",
disabled: !!!technician,
disabled: !technician,
icon: <Icon component={FaBusinessTime} />,
label: <Link to={`/tech/jobclock`}>{t("menus.tech.jobclockin")}</Link>
});
@@ -90,31 +90,31 @@ export function TechSider({ technician, techLogout, bodyshop, setTimeTicketTaskC
{
key: "4",
icon: <Icon component={MdTimer} />,
disabled: !!!technician,
disabled: !technician,
label: <Link to={`/tech/shiftclock`}>{t("menus.tech.shiftclockin")}</Link>
},
{
key: "dispatchedparts",
disabled: !!!technician,
disabled: !technician,
icon: <CarOutlined />,
label: <Link to={`/tech/dispatchedparts`}>{t("menus.tech.dispatchedparts")}</Link>
},
{
key: "5",
icon: <ScheduleOutlined />,
disabled: !!!technician,
disabled: !technician,
label: <Link to={`/tech/list`}>{t("menus.tech.productionlist")}</Link>
},
{
key: "6",
icon: <Icon component={BsKanban} />,
disabled: !!!technician,
disabled: !technician,
label: <Link to={`/tech/board`}>{t("menus.tech.productionboard")}</Link>
},
{
key: "7",
icon: <Icon component={FiLogOut} />,
disabled: !!!technician,
disabled: !technician,
label: t("menus.tech.logout")
}
);