Skip to content

Commit

Permalink
address feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
koji committed Oct 11, 2024
1 parent 7cd6117 commit 8c54798
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,11 @@
"no_steps": "No steps defined",
"number_of_steps": "Number of steps",
"protocol_metadata": "Protocol Metadata",
"protocol_steps": "Protocol Steps",
"required_app_version": "Required app version",
"right_pip": "Right pipette",
"robotType": "Robot type",
"starting_deck": "Protocol Starting Deck",
"step": "Protocol Steps",
"steps": "{{count}} steps",
"total_well_volume": "Total Well Volume",
"untitled_protocol": "Untitled protocol",
Expand Down
8 changes: 5 additions & 3 deletions protocol-designer/src/pages/ProtocolOverview/StepsInfo.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,12 @@ export function StepsInfo({ savedStepForms }: StepsInfoProps): JSX.Element {
return (
<Flex flexDirection={DIRECTION_COLUMN} gridGap={SPACING.spacing12}>
<Flex>
<StyledText desktopStyle="headingSmallBold">{t('step')}</StyledText>
<StyledText desktopStyle="headingSmallBold">
{t('protocol_steps')}
</StyledText>
</Flex>
<Flex flexDirection={DIRECTION_COLUMN} gridGap={SPACING.spacing4}>
{Object.keys(savedStepForms).length <= 1 ? (
{Object.keys(savedStepForms).length < 1 ? (
<InfoScreen content={t('no_steps')} />
) : (
<ListItem type="noActive" key="ProtocolOverview_Step">
Expand All @@ -43,7 +45,7 @@ export function StepsInfo({ savedStepForms }: StepsInfoProps): JSX.Element {
content={
<StyledText desktopStyle="bodyDefaultRegular">
{t('steps', {
count: (Object.keys(savedStepForms).length - 1).toString(),
count: Object.keys(savedStepForms).length.toString(),
})}
</StyledText>
}
Expand Down

0 comments on commit 8c54798

Please sign in to comment.