@@ -11,8 +11,7 @@ import { useToast } from '../../../../hooks/toasts.hooks';
1111import { useAssignMaterialToAssembly , useDeleteAssembly , useDeleteMaterial } from '../../../../hooks/bom.hooks' ;
1212import LoadingIndicator from '../../../../components/LoadingIndicator' ;
1313import EditMaterialModal from './MaterialForm/EditMaterialModal' ;
14- import ContentCopyIcon from '@mui/icons-material/ContentCopy' ;
15- import { Button , Link , Tooltip , Typography } from '@mui/material' ;
14+ import { Button , Link , Typography } from '@mui/material' ;
1615import { bomBaseColDef } from '../../../../utils/bom.utils' ;
1716import NERModal from '../../../../components/NERModal' ;
1817import { renderStatusBOM } from './BOMTableCustomCells' ;
@@ -298,22 +297,10 @@ const BOMTableWrapper: React.FC<BOMTableWrapperProps> = ({
298297 flex : 1.5 ,
299298 field : 'name' ,
300299 headerName : 'Name' ,
300+ type : 'string' ,
301301 sortable : false ,
302302 filterable : false ,
303- hide : hideColumn [ 3 ] ,
304- renderCell : ( params ) => {
305- const material = materials . find ( ( m ) => m . materialId === params . row . materialId ) ;
306- return (
307- < Box sx = { { display : 'flex' , alignItems : 'center' , gap : 0.5 } } >
308- < Typography variant = "body2" > { params . value } </ Typography >
309- { material ?. isCopied && (
310- < Tooltip title = "Copied from another BOM" >
311- < ContentCopyIcon sx = { { fontSize : 14 , color : 'warning.main' } } />
312- </ Tooltip >
313- ) }
314- </ Box >
315- ) ;
316- }
303+ hide : hideColumn [ 3 ]
317304 } ,
318305 {
319306 ...bomBaseColDef ,
@@ -427,4 +414,4 @@ const BOMTableWrapper: React.FC<BOMTableWrapperProps> = ({
427414 ) ;
428415} ;
429416
430- export default BOMTableWrapper ;
417+ export default BOMTableWrapper ;
0 commit comments