@@ -4,6 +4,7 @@ import { Assembly, Material } from 'shared';
44import { BomRow , bomTableStyles , materialToRow , BomStyledDataGrid } from '../../../../utils/bom.utils' ;
55import { addMaterialCosts } from '../BOMTab' ;
66import { centsToDollar } from '../../../../utils/pipes' ;
7+ import { useTheme } from '@mui/material' ;
78import { useState } from 'react' ;
89
910interface BOMTableProps {
@@ -20,6 +21,7 @@ const BOMTable: React.FC<BOMTableProps> = ({ columns, materials, assemblies }) =
2021 } ;
2122
2223 const noAssemblyMaterials = materials . filter ( ( material ) => ! material . assembly ) ;
24+ const theme = useTheme ( ) ;
2325 const miscAssembly : BomRow = {
2426 id : `assembly-misc` ,
2527 materialId : '' ,
@@ -82,7 +84,20 @@ const BOMTable: React.FC<BOMTableProps> = ({ columns, materials, assemblies }) =
8284 return (
8385 < Box
8486 sx = { {
85- height : 'calc(100vh - 180px)'
87+ height : 'calc(100vh - 180px)' ,
88+ width : '100%' ,
89+ '& .super-app-theme--header' : {
90+ backgroundColor : '#ef4345'
91+ } ,
92+ '& .super-app-theme--assembly' : {
93+ backgroundColor : theme . palette . grey [ 600 ] ,
94+ '&:hover' : {
95+ backgroundColor : theme . palette . grey [ 700 ]
96+ } ,
97+ '&:focus' : {
98+ backgroundColor : '#997570'
99+ }
100+ }
86101 } }
87102 >
88103 < BomStyledDataGrid
0 commit comments