File tree Expand file tree Collapse file tree 2 files changed +16
-8
lines changed Expand file tree Collapse file tree 2 files changed +16
-8
lines changed Original file line number Diff line number Diff line change @@ -18,11 +18,10 @@ import {
18
18
getFixtureDisplayName ,
19
19
getModuleDisplayName ,
20
20
getModuleType ,
21
+ getModuleDeckLabel ,
21
22
GRIPPER_V1_2 ,
22
23
MAGNETIC_BLOCK_FIXTURES ,
23
24
MAGNETIC_BLOCK_TYPE ,
24
- TC_MODULE_LOCATION_OT3 ,
25
- THERMOCYCLER_MODULE_TYPE ,
26
25
} from '@opentrons/shared-data'
27
26
28
27
import {
@@ -122,11 +121,13 @@ function HardwareItem({
122
121
</ LegacyStyledText >
123
122
)
124
123
if ( hardware . hardwareType === 'module' ) {
125
- const slot =
126
- getModuleType ( hardware . moduleModel ) === THERMOCYCLER_MODULE_TYPE
127
- ? TC_MODULE_LOCATION_OT3
128
- : hardware . slot
129
- location = < DeckInfoLabel deckLabel = { slot } />
124
+ location = (
125
+ < DeckInfoLabel
126
+ deckLabel = {
127
+ getModuleDeckLabel ( getModuleType ( hardware . moduleModel ) , hardware . slot )
128
+ }
129
+ />
130
+ )
130
131
} else if ( hardware . hardwareType === 'fixture' ) {
131
132
location = (
132
133
< DeckInfoLabel
Original file line number Diff line number Diff line change @@ -18,6 +18,7 @@ import {
18
18
getFixtureDisplayName ,
19
19
getModuleDisplayName ,
20
20
getModuleType ,
21
+ getModuleDeckLabel ,
21
22
GRIPPER_V1_2 ,
22
23
MAGNETIC_BLOCK_FIXTURES ,
23
24
MAGNETIC_BLOCK_TYPE ,
@@ -120,7 +121,13 @@ function HardwareItem({
120
121
</ LegacyStyledText >
121
122
)
122
123
if ( hardware . hardwareType === 'module' ) {
123
- location = < DeckInfoLabel deckLabel = { hardware . slot } />
124
+ location = (
125
+ < DeckInfoLabel
126
+ deckLabel = {
127
+ getModuleDeckLabel ( getModuleType ( hardware . moduleModel ) , hardware . slot )
128
+ }
129
+ />
130
+ )
124
131
} else if ( hardware . hardwareType === 'fixture' ) {
125
132
location = (
126
133
< DeckInfoLabel
You can’t perform that action at this time.
0 commit comments