File tree Expand file tree Collapse file tree 3 files changed +7
-1
lines changed
app/src/organisms/Desktop/ProtocolVisualization Expand file tree Collapse file tree 3 files changed +7
-1
lines changed Original file line number Diff line number Diff line change 11import { useTranslation } from 'react-i18next'
22
3- import { Chip , StyledText } from '@opentrons/components'
3+ import { Chip , RobotInfoLabel , StyledText } from '@opentrons/components'
44import {
55 ABSORBANCE_READER_TYPE ,
66 FLEX_STACKER_MODULE_TYPE ,
@@ -21,12 +21,14 @@ interface ModuleContainerProps {
2121 moduleId : string
2222 moduleEntities : ModuleEntities
2323 moduleRobotState : RobotState [ 'modules' ]
24+ slotId : string
2425}
2526
2627export function ModuleContainer ( {
2728 moduleId,
2829 moduleEntities,
2930 moduleRobotState,
31+ slotId,
3032} : ModuleContainerProps ) : JSX . Element {
3133 const { t } = useTranslation ( 'protocol_visualization' )
3234 const { model } = moduleEntities [ moduleId ]
@@ -221,9 +223,11 @@ export function ModuleContainer({
221223 `ran into the default moduleContainer moduleState with module ${ moduleDisplayName } `
222224 )
223225 }
226+
224227 return (
225228 < div className = { styles . container } >
226229 < div className = { styles . main_content } >
230+ < RobotInfoLabel deckLabel = { slotId } />
227231 < StyledText desktopStyle = "bodyDefaultSemiBold" >
228232 { moduleDisplayName }
229233 </ StyledText >
Original file line number Diff line number Diff line change 2727 width : 100% ;
2828 flex-direction : column;
2929 justify-content : space-between;
30+ gap : var (--spacing-4 );
3031}
Original file line number Diff line number Diff line change @@ -117,6 +117,7 @@ export function SlotDetails(props: SlotDetailsProps): JSX.Element {
117117 moduleId = { moduleOnSlot [ 0 ] }
118118 moduleEntities = { moduleEntities }
119119 moduleRobotState = { modules }
120+ slotId = { slotId }
120121 />
121122 ) : null }
122123 </ div >
You can’t perform that action at this time.
0 commit comments