From e4aa920b1aa9237455078289f7a098ed097aa9da Mon Sep 17 00:00:00 2001 From: Dave Date: Thu, 15 Jan 2026 14:31:15 -0500 Subject: [PATCH] feature/IO-3499-React-19-ProductionBoard - remove use-memo-one / Add missing cards --- .../job-3rd-party-modal/job-3rd-party-modal.component.jsx | 2 +- .../jobs-create-owner-info.new.component.jsx | 6 +++--- .../jobs-create-vehicle-info.new.component.jsx | 6 +++--- .../jobs-detail-dates/jobs-detail-dates.component.jsx | 6 +++--- .../jobs-detail-general/jobs-detail-general.component.jsx | 6 +++--- .../jobs-detail-rates/jobs-detail-rates.component.jsx | 6 +++--- .../owner-detail-form/owner-detail-form.container.jsx | 6 +++--- .../vehicle-detail-form/vehicle-detail-form.container.jsx | 6 +++--- 8 files changed, 22 insertions(+), 22 deletions(-) diff --git a/client/src/components/job-3rd-party-modal/job-3rd-party-modal.component.jsx b/client/src/components/job-3rd-party-modal/job-3rd-party-modal.component.jsx index 02b82e436..56b0d1c65 100644 --- a/client/src/components/job-3rd-party-modal/job-3rd-party-modal.component.jsx +++ b/client/src/components/job-3rd-party-modal/job-3rd-party-modal.component.jsx @@ -80,7 +80,7 @@ export function Jobd3RdPartyModal({ bodyshop, jobId, job, technician }) { }; const handleVendorSelect = (vendorid) => { - const vendor = VendorAutoCompleteData.vendors.filter((v) => v.id === vendorid)[0]; + const vendor = VendorAutoCompleteData?.vendors?.filter((v) => v.id === vendorid)[0]; if (vendor) { form.setFieldsValue({ addr1: vendor.name, diff --git a/client/src/components/jobs-create-owner-info/jobs-create-owner-info.new.component.jsx b/client/src/components/jobs-create-owner-info/jobs-create-owner-info.new.component.jsx index 2792adcdc..cb1e077be 100644 --- a/client/src/components/jobs-create-owner-info/jobs-create-owner-info.new.component.jsx +++ b/client/src/components/jobs-create-owner-info/jobs-create-owner-info.new.component.jsx @@ -1,4 +1,4 @@ -import { Form, Input, Select } from "antd"; +import { Card, Form, Input, Select } from "antd"; import { useContext } from "react"; import { useTranslation } from "react-i18next"; import JobCreateContext from "../../pages/jobs-create/jobs-create.context"; @@ -29,7 +29,7 @@ export default function JobsCreateOwnerInfoNewComponent() { ]; return ( -
+ -
+ ); } diff --git a/client/src/components/jobs-create-vehicle-info/jobs-create-vehicle-info.new.component.jsx b/client/src/components/jobs-create-vehicle-info/jobs-create-vehicle-info.new.component.jsx index 990cc7c0c..0544a7dc2 100644 --- a/client/src/components/jobs-create-vehicle-info/jobs-create-vehicle-info.new.component.jsx +++ b/client/src/components/jobs-create-vehicle-info/jobs-create-vehicle-info.new.component.jsx @@ -1,4 +1,4 @@ -import { Form, Input } from "antd"; +import { Card, Form, Input } from "antd"; import { useContext } from "react"; import { useTranslation } from "react-i18next"; import JobCreateContext from "../../pages/jobs-create/jobs-create.context"; @@ -11,7 +11,7 @@ export default function JobsCreateVehicleInfoNewComponent({ form }) { const { t } = useTranslation(); return ( -
+ -
+ ); } diff --git a/client/src/components/jobs-detail-dates/jobs-detail-dates.component.jsx b/client/src/components/jobs-detail-dates/jobs-detail-dates.component.jsx index 9a5f0b6b2..2f39801b7 100644 --- a/client/src/components/jobs-detail-dates/jobs-detail-dates.component.jsx +++ b/client/src/components/jobs-detail-dates/jobs-detail-dates.component.jsx @@ -1,4 +1,4 @@ -import { Form, Statistic, Tooltip } from "antd"; +import { Card, Form, Statistic, Tooltip } from "antd"; import { useMemo } from "react"; import { useTranslation } from "react-i18next"; import { connect } from "react-redux"; @@ -27,7 +27,7 @@ export function JobsDetailDatesComponent({ jobRO, job, bodyshop }) { : []; return ( -
+ @@ -122,7 +122,7 @@ export function JobsDetailDatesComponent({ jobRO, job, bodyshop }) { -
+ ); } diff --git a/client/src/components/jobs-detail-general/jobs-detail-general.component.jsx b/client/src/components/jobs-detail-general/jobs-detail-general.component.jsx index 7840f37ca..172400edd 100644 --- a/client/src/components/jobs-detail-general/jobs-detail-general.component.jsx +++ b/client/src/components/jobs-detail-general/jobs-detail-general.component.jsx @@ -1,4 +1,4 @@ -import { Col, Form, Input, InputNumber, Row, Select, Space, Switch } from "antd"; +import { Card, Col, Form, Input, InputNumber, Row, Select, Space, Switch } from "antd"; import { useTranslation } from "react-i18next"; import { connect } from "react-redux"; import { createStructuredSelector } from "reselect"; @@ -37,7 +37,7 @@ export function JobsDetailGeneral({ bodyshop, jobRO, job, form }) { }; return ( -
+ @@ -268,7 +268,7 @@ export function JobsDetailGeneral({ bodyshop, jobRO, job, form }) { -
+ ); } diff --git a/client/src/components/jobs-detail-rates/jobs-detail-rates.component.jsx b/client/src/components/jobs-detail-rates/jobs-detail-rates.component.jsx index c2e647ec2..e4c25643b 100644 --- a/client/src/components/jobs-detail-rates/jobs-detail-rates.component.jsx +++ b/client/src/components/jobs-detail-rates/jobs-detail-rates.component.jsx @@ -1,4 +1,4 @@ -import { Divider, Form, Input, InputNumber, Select, Space, Switch, Tooltip } from "antd"; +import { Card, Divider, Form, Input, InputNumber, Select, Space, Switch, Tooltip } from "antd"; import { useTranslation } from "react-i18next"; import { connect } from "react-redux"; import { createStructuredSelector } from "reselect"; @@ -25,7 +25,7 @@ const mapStateToProps = createStructuredSelector({ export function JobsDetailRates({ jobRO, form, job, bodyshop }) { const { t } = useTranslation(); return ( -
+