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`} + /> ) ); }