File tree Expand file tree Collapse file tree 1 file changed +3
-18
lines changed
app/src/organisms/Desktop/ProtocolDetails/AnnotatedSteps Expand file tree Collapse file tree 1 file changed +3
-18
lines changed Original file line number Diff line number Diff line change 1- import { useEffect , useRef , useState } from 'react'
1+ import { useEffect , useRef } from 'react'
22import clsx from 'clsx'
33
4- import { COLORS , CommandText , StyledText } from '@opentrons/components'
4+ import { COLORS , CommandText } from '@opentrons/components'
55import { FLEX_ROBOT_TYPE } from '@opentrons/shared-data'
66
77import { 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 >
You can’t perform that action at this time.
0 commit comments