Skip to content

Commit

Permalink
refactor(app): fix title element props in LabwareStackModal (#15922)
Browse files Browse the repository at this point in the history
Pass `LegacyModal` title text and icon elements as separate props in
`LabwareStackModal`
  • Loading branch information
ncdiehl11 authored Aug 7, 2024
1 parent f851fc9 commit 63fd8fc
Showing 1 changed file with 3 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -155,13 +155,9 @@ export const LabwareStackModal = (
<LegacyModal
onClose={closeModal}
closeOnOutsideClick
title={
<Flex gridGap={SPACING.spacing8}>
<DeckInfoLabel deckLabel={slotName} />
<DeckInfoLabel iconName="stacked" />
<StyledText>{t('stacked_slot')}</StyledText>
</Flex>
}
title={t('stacked_slot')}
titleElement1={<DeckInfoLabel deckLabel={slotName} />}
titleElement2={<DeckInfoLabel iconName="stacked" />}
childrenPadding={0}
marginLeft="0"
>
Expand Down

0 comments on commit 63fd8fc

Please sign in to comment.