Skip to content

Commit

Permalink
fix(app): fix capitalization of ML to uL in instrument cards (#14779)
Browse files Browse the repository at this point in the history
  • Loading branch information
smb2268 authored Apr 2, 2024
1 parent 2dbb1d9 commit 6933c61
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 1 addition & 3 deletions app/src/molecules/InstrumentCard/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -111,9 +111,7 @@ export function InstrumentCard(props: InstrumentCardProps): JSX.Element {
>
{label}
</StyledText>
<StyledText as="p" textTransform={TYPOGRAPHY.textTransformCapitalize}>
{description}
</StyledText>
<StyledText as="p">{description}</StyledText>
</Flex>
{menuOverlayItems != null && (
<Box
Expand Down
4 changes: 3 additions & 1 deletion app/src/organisms/Devices/PipetteCard/FlexPipetteCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,9 @@ export function FlexPipetteCard({
subsystemUpdateData == null ? (
<InstrumentCard
description={
attachedPipette != null ? pipetteDisplayName : t('shared:empty')
attachedPipette != null && pipetteDisplayName != null
? pipetteDisplayName
: i18n.format(t('shared:empty'), 'capitalize')
}
instrumentDiagramProps={{
pipetteSpecs: pipetteModelSpecs,
Expand Down
2 changes: 1 addition & 1 deletion app/src/organisms/GripperCard/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ export function GripperCard({
? getGripperDisplayName(
attachedGripper.instrumentModel as GripperModel
)
: t('shared:empty')
: i18n.format(t('shared:empty'), 'capitalize')
}
banner={
attachedGripper?.ok && !isCalibrated ? (
Expand Down

0 comments on commit 6933c61

Please sign in to comment.