From fef0fdf99bb7193760dab8214d3c610bbe030616 Mon Sep 17 00:00:00 2001 From: Oliver Date: Fri, 24 Apr 2026 10:52:27 +1000 Subject: [PATCH] Simplify BOM table rendering (#11795) --- src/frontend/src/tables/bom/BomTable.tsx | 43 ++++++++++++------------ 1 file changed, 21 insertions(+), 22 deletions(-) diff --git a/src/frontend/src/tables/bom/BomTable.tsx b/src/frontend/src/tables/bom/BomTable.tsx index 61d064c1c3..7581cf2068 100644 --- a/src/frontend/src/tables/bom/BomTable.tsx +++ b/src/frontend/src/tables/bom/BomTable.tsx @@ -13,12 +13,11 @@ import useTable from '@lib/hooks/UseTable'; import type { TableFilter } from '@lib/types/Filters'; import type { TableColumn } from '@lib/types/Tables'; import { t } from '@lingui/core/macro'; -import { ActionIcon, Alert, Group, Stack, Text, Tooltip } from '@mantine/core'; +import { Alert, Group, Stack, Text } from '@mantine/core'; import { showNotification } from '@mantine/notifications'; import { IconArrowRight, IconCircleCheck, - IconExclamationCircle, IconFileUpload, IconLock, IconPlus, @@ -99,28 +98,28 @@ export function BomTable({ ); } + if (!record.validated) { + extra.push( + + {t`This BOM item has not been validated`} + + ); + } + return ( part && ( - - - } - extra={extra} - title={t`Part Information`} - /> - {!record.validated && ( - - - - - - )} - + + } + iconColor={record.validated ? undefined : 'red'} + extra={extra} + title={t`Part Information`} + /> ) ); }