From f70b9819f588bd4d42a4b864880efe12d06e231d Mon Sep 17 00:00:00 2001 From: Matthias Mair Date: Tue, 16 Apr 2024 07:59:59 +0200 Subject: [PATCH] fix new code to v7 style --- src/frontend/src/pages/part/pricing/BomPricingPanel.tsx | 2 +- src/frontend/src/tables/bom/BomTable.tsx | 2 +- src/frontend/src/tables/bom/UsedInTable.tsx | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/frontend/src/pages/part/pricing/BomPricingPanel.tsx b/src/frontend/src/pages/part/pricing/BomPricingPanel.tsx index b4b894457a..1e054452b9 100644 --- a/src/frontend/src/pages/part/pricing/BomPricingPanel.tsx +++ b/src/frontend/src/pages/part/pricing/BomPricingPanel.tsx @@ -122,7 +122,7 @@ export default function BomPricingPanel({ let units = record.sub_part_detail?.units; return ( - + {quantity} {units && [{units}]} diff --git a/src/frontend/src/tables/bom/BomTable.tsx b/src/frontend/src/tables/bom/BomTable.tsx index 8f6aafadec..87601c9c35 100644 --- a/src/frontend/src/tables/bom/BomTable.tsx +++ b/src/frontend/src/tables/bom/BomTable.tsx @@ -109,7 +109,7 @@ export function BomTable({ let units = record.sub_part_detail?.units; return ( - + {quantity} {record.overage && +{record.overage}} {units && {units}} diff --git a/src/frontend/src/tables/bom/UsedInTable.tsx b/src/frontend/src/tables/bom/UsedInTable.tsx index dd8aaa5a0b..ef9c050807 100644 --- a/src/frontend/src/tables/bom/UsedInTable.tsx +++ b/src/frontend/src/tables/bom/UsedInTable.tsx @@ -45,7 +45,7 @@ export function UsedInTable({ let units = record.sub_part_detail?.units; return ( - + {quantity} {units && {units}}