Skip to content

Commit 7d902db

Browse files
authored
fix(app): remove number from individual command (#20297)
* fix(app): remove number from individual command
1 parent 1ae94ec commit 7d902db

File tree

1 file changed

+3
-18
lines changed

1 file changed

+3
-18
lines changed

app/src/organisms/Desktop/ProtocolDetails/AnnotatedSteps/IndividualCommand.tsx

Lines changed: 3 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
import { useEffect, useRef, useState } from 'react'
1+
import { useEffect, useRef } from 'react'
22
import clsx from 'clsx'
33

4-
import { COLORS, CommandText, StyledText } from '@opentrons/components'
4+
import { COLORS, CommandText } from '@opentrons/components'
55
import { FLEX_ROBOT_TYPE } from '@opentrons/shared-data'
66

77
import { CommandIcon } from '/app/molecules/Command'
@@ -36,7 +36,6 @@ export function IndividualCommand({
3636
commandNumber,
3737
scrollTargetId,
3838
}: IndividualCommandProps): JSX.Element {
39-
const [showNumber, setShowNumber] = useState<boolean>(false)
4039
const commandRef = useRef<HTMLDivElement | null>(null)
4140
const iconColor = isHighlighted ? COLORS.purple50 : COLORS.grey50
4241

@@ -64,16 +63,7 @@ export function IndividualCommand({
6463
)
6564

6665
return (
67-
<div
68-
className={individualCommandContainerStyle}
69-
ref={commandRef}
70-
onMouseEnter={() => {
71-
setShowNumber(true)
72-
}}
73-
onMouseLeave={() => {
74-
setShowNumber(false)
75-
}}
76-
>
66+
<div className={individualCommandContainerStyle} ref={commandRef}>
7767
<div
7868
className={commandWrapStyle}
7969
onClick={() => {
@@ -90,11 +80,6 @@ export function IndividualCommand({
9080
allRunDefs={allRunDefs}
9181
/>
9282
</div>
93-
{showNumber ? (
94-
<StyledText color={COLORS.grey60} desktopStyle="captionRegular">
95-
{commandNumber}
96-
</StyledText>
97-
) : null}
9883
</div>
9984
</div>
10085
</div>

0 commit comments

Comments
 (0)