From c98a48ea146d991b90817698f64461304efcc1be Mon Sep 17 00:00:00 2001 From: Dave Richer Date: Fri, 19 Apr 2024 12:57:45 -0400 Subject: [PATCH] - Add Additional tags (prettier also fixed some double spaced imports) Signed-off-by: Dave Richer --- .../shop-info/shop-info.component.jsx | 100 ++++++++++-------- .../jobs-create/jobs-create.component.jsx | 3 + 2 files changed, 59 insertions(+), 44 deletions(-) diff --git a/client/src/components/shop-info/shop-info.component.jsx b/client/src/components/shop-info/shop-info.component.jsx index fd9ba96a8..6bdba17bd 100644 --- a/client/src/components/shop-info/shop-info.component.jsx +++ b/client/src/components/shop-info/shop-info.component.jsx @@ -1,25 +1,25 @@ -import { useSplitTreatments } from '@splitsoftware/splitio-react'; -import { Button, Card, Tabs } from 'antd'; -import React from 'react'; -import { useTranslation } from 'react-i18next'; -import { connect } from 'react-redux'; -import { createStructuredSelector } from 'reselect'; -import { selectBodyshop } from '../../redux/user/user.selectors'; -import ShopInfoGeneral from './shop-info.general.component'; -import ShopInfoIntakeChecklistComponent from './shop-info.intake.component'; -import ShopInfoLaborRates from './shop-info.laborrates.component'; -import ShopInfoOrderStatusComponent from './shop-info.orderstatus.component'; -import ShopInfoPartsScan from './shop-info.parts-scan'; -import ShopInfoRbacComponent from './shop-info.rbac.component'; -import ShopInfoResponsibilityCenterComponent from './shop-info.responsibilitycenters.component'; -import ShopInfoROStatusComponent from './shop-info.rostatus.component'; -import ShopInfoSchedulingComponent from './shop-info.scheduling.component'; -import ShopInfoSpeedPrint from './shop-info.speedprint.component'; -import { useLocation, useNavigate } from 'react-router-dom'; -import ShopInfoTaskPresets from './shop-info.task-presets.component'; -import queryString from 'query-string'; -import InstanceRenderManager from '../../utils/instanceRenderMgr'; -import ShopInfoRoGuard from './shop-info.roguard.component'; +import { useSplitTreatments } from "@splitsoftware/splitio-react"; +import { Button, Card, Tabs } from "antd"; +import React from "react"; +import { useTranslation } from "react-i18next"; +import { connect } from "react-redux"; +import { createStructuredSelector } from "reselect"; +import { selectBodyshop } from "../../redux/user/user.selectors"; +import ShopInfoGeneral from "./shop-info.general.component"; +import ShopInfoIntakeChecklistComponent from "./shop-info.intake.component"; +import ShopInfoLaborRates from "./shop-info.laborrates.component"; +import ShopInfoOrderStatusComponent from "./shop-info.orderstatus.component"; +import ShopInfoPartsScan from "./shop-info.parts-scan"; +import ShopInfoRbacComponent from "./shop-info.rbac.component"; +import ShopInfoResponsibilityCenterComponent from "./shop-info.responsibilitycenters.component"; +import ShopInfoROStatusComponent from "./shop-info.rostatus.component"; +import ShopInfoSchedulingComponent from "./shop-info.scheduling.component"; +import ShopInfoSpeedPrint from "./shop-info.speedprint.component"; +import { useLocation, useNavigate } from "react-router-dom"; +import ShopInfoTaskPresets from "./shop-info.task-presets.component"; +import queryString from "query-string"; +import InstanceRenderManager from "../../utils/instanceRenderMgr"; +import ShopInfoRoGuard from "./shop-info.roguard.component"; const mapStateToProps = createStructuredSelector({ bodyshop: selectBodyshop @@ -47,44 +47,52 @@ export function ShopInfoComponent({ bodyshop, form, saveLoading }) { { key: "general", label: t("bodyshop.labels.shopinfo"), - children: + children: , + id: "tab-shop-general" }, { key: "speedprint", label: t("bodyshop.labels.speedprint"), - children: + children: , + id: "tab-shop-speedprint" }, { key: "rbac", label: t("bodyshop.labels.rbac"), - children: + children: , + id: "tab-shop-rbac" }, { key: "roStatus", label: t("bodyshop.labels.jobstatuses"), - children: + children: , + id: "tab-shop-rostatus" }, { key: "scheduling", label: t("bodyshop.labels.scheduling"), - children: + children: , + id: "tab-shop-scheduling" }, { key: "orderStatus", label: t("bodyshop.labels.orderstatuses"), - children: + children: , + id: "tab-shop-orderstatus" }, { key: "responsibilityCenters", label: t("bodyshop.labels.responsibilitycenters.title"), - children: + children: , + id: "tab-shop-responsibilitycenters" }, ...InstanceRenderManager({ imex: [ { key: "checklists", label: t("bodyshop.labels.checklists"), - children: + children: , + id: "tab-shop-checklists" } ], rome: "USE_IMEX", @@ -93,14 +101,16 @@ export function ShopInfoComponent({ bodyshop, form, saveLoading }) { { key: "laborrates", label: t("bodyshop.labels.laborrates"), - children: + children: , + id: "tab-shop-laborrates" }, ...(CriticalPartsScanning.treatment === "on" ? [ { key: "partsscan", label: t("bodyshop.labels.partsscan"), - children: + children: , + id: "tab-shop-partsscan" } ] : []), @@ -109,21 +119,23 @@ export function ShopInfoComponent({ bodyshop, form, saveLoading }) { { key: "task-presets", label: t("bodyshop.labels.task-presets"), - children: + children: , + id: "tab-shop-task-presets" } ] : []), - ...InstanceRenderManager({ - imex: [ - { - key: 'roguard', - label: t('bodyshop.labels.roguard.title'), - children: , - }, - ], - rome: 'USE_IMEX', - promanager: [], - }), + ...InstanceRenderManager({ + imex: [ + { + key: "roguard", + label: t("bodyshop.labels.roguard.title"), + children: , + id: "tab-shop-roguard" + } + ], + rome: "USE_IMEX", + promanager: [] + }) ]; return ( , validation: !!state.vehicle.new || !!state.vehicle.selectedid || !!state.vehicle.none, error: t("vehicles.errors.selectexistingornew") }, { title: t("jobs.labels.create.ownerinfo"), + id: "step-job-ownerinfo", content: , validation: !!state.owner.new || !!state.owner.selectedid, error: t("owners.errors.selectexistingornew") }, { title: t("jobs.labels.create.jobinfo"), + id: "step-job-jobinfo", content: } ];