@@ -19,6 +19,8 @@ import {
1919 getModuleType ,
2020 getFixtureDisplayName ,
2121 GRIPPER_V1_2 ,
22+ MAGNETIC_BLOCK_FIXTURES ,
23+ MAGNETIC_BLOCK_TYPE ,
2224} from '@opentrons/shared-data'
2325
2426import {
@@ -119,26 +121,33 @@ function HardwareItem({
119121 < LocationIcon slotName = { getCutoutDisplayName ( hardware . location . cutout ) } />
120122 )
121123 }
124+ const isMagneticBlockFixture =
125+ hardware . hardwareType === 'fixture' &&
126+ hardware . cutoutFixtureId != null &&
127+ MAGNETIC_BLOCK_FIXTURES . includes ( hardware . cutoutFixtureId )
128+ let iconModuleType = null
129+ if ( hardware . hardwareType === 'module' ) {
130+ iconModuleType = getModuleType ( hardware . moduleModel )
131+ } else if ( isMagneticBlockFixture ) {
132+ iconModuleType = MAGNETIC_BLOCK_TYPE
133+ }
122134 return (
123135 < TableRow >
124136 < TableDatum >
125137 < Flex paddingLeft = { SPACING . spacing24 } > { location } </ Flex >
126138 </ TableDatum >
127139 < TableDatum >
128140 < Flex paddingLeft = { SPACING . spacing24 } >
129- { hardware . hardwareType === 'module' && (
141+ { iconModuleType != null ? (
130142 < Flex
131143 alignItems = { ALIGN_CENTER }
132144 height = "2rem"
133145 paddingBottom = { SPACING . spacing4 }
134146 paddingRight = { SPACING . spacing8 }
135147 >
136- < ModuleIcon
137- moduleType = { getModuleType ( hardware . moduleModel ) }
138- size = "1.75rem"
139- />
148+ < ModuleIcon moduleType = { iconModuleType } size = "1.75rem" />
140149 </ Flex >
141- ) }
150+ ) : null }
142151 < StyledText as = "p" > { hardwareName } </ StyledText >
143152 </ Flex >
144153 </ TableDatum >
0 commit comments