Skip to content

Commit

Permalink
fix(protocol-designer): fix text display condition in select modules …
Browse files Browse the repository at this point in the history
…and select fixtures (#16361)

* fix(protocol-designer): fix text display condition in select modules and select fixtures
  • Loading branch information
koji authored Sep 27, 2024
1 parent d8a5a0e commit e3c39e7
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
"vol_label": "{{volume}} uL",
"wasteChute": "Waste Chute",
"which_fixtures": "Which fixtures will you be using?",
"which_mods": "Select modules to use in your protocol.",
"which_modules": "Select modules to use in your protocol.",
"which_pipette": "Pick your first pipette. If you need a second pipette, you can add it next.",
"your_pips": "Your pipettes"
}
Original file line number Diff line number Diff line change
Expand Up @@ -81,10 +81,11 @@ export function SelectFixtures(props: WizardTileProps): JSX.Element | null {
>
<Flex flexDirection={DIRECTION_COLUMN} gridGap={SPACING.spacing32}>
<Flex flexDirection={DIRECTION_COLUMN} gridGap={SPACING.spacing12}>
<StyledText desktopStyle="headingSmallBold">
{t('which_fixtures')}
</StyledText>

{filteredAdditionalEquipment.length > 0 ? (
<StyledText desktopStyle="headingSmallBold">
{t('which_fixtures')}
</StyledText>
) : null}
<Flex gridGap={SPACING.spacing4} flexWrap={WRAP}>
{filteredAdditionalEquipment.map(equipment => (
<EmptySelectorButton
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -111,9 +111,14 @@ export function SelectModules(props: WizardTileProps): JSX.Element | null {
>
<Flex flexDirection={DIRECTION_COLUMN}>
<Flex flexDirection={DIRECTION_COLUMN} gridGap={SPACING.spacing12}>
{filteredSupportedModules.length > 0 ? (
{(filteredSupportedModules.length > 0 && enableAbsorbanceReader) ||
// note (kk:09/26/2024) the condition for absorbanceReaderV1 will be removed when ff is removed
!(
filteredSupportedModules.length === 1 &&
filteredSupportedModules[0] === 'absorbanceReaderV1'
) ? (
<StyledText desktopStyle="headingSmallBold">
{t('which_mods')}
{t('which_modules')}
</StyledText>
) : null}
<Flex gridGap={SPACING.spacing4} flexWrap={WRAP}>
Expand Down

0 comments on commit e3c39e7

Please sign in to comment.