Skip to content

Commit

Permalink
fix(labware-library): hide the descriptive icons for now (#16388)
Browse files Browse the repository at this point in the history
closes RQA-3251
  • Loading branch information
jerader committed Sep 30, 2024
1 parent 6471dd4 commit 2cdcc96
Showing 1 changed file with 14 additions and 13 deletions.
27 changes: 14 additions & 13 deletions labware-library/src/components/ui/TableTitle.tsx
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
// Table Title with expandable measurement diagrams
import * as React from 'react'
import cx from 'classnames'
import { LabelText, LABEL_LEFT } from './LabelText'
import { ClickableIcon } from './ClickableIcon'
// import { ClickableIcon } from './ClickableIcon'
import styles from './styles.module.css'

interface TableTitleProps {
Expand All @@ -11,30 +10,32 @@ interface TableTitleProps {
}

export function TableTitle(props: TableTitleProps): JSX.Element {
const [guideVisible, setGuideVisible] = React.useState<boolean>(false)
const toggleGuide = (): void => {
setGuideVisible(!guideVisible)
}
// TODO(ja, 9/30/24): fix the actual bug. temporarily commenting it out for now since the images
// rendered by the toggleGuide were not being copied into the build folder
// see https://opentrons.atlassian.net/browse/AUTH-885 for more info
// const [guideVisible, setGuideVisible] = React.useState<boolean>(false)
// const toggleGuide = (): void => {
// setGuideVisible(!guideVisible)
// }
// const iconClassName = cx(styles.info_button, {
// [styles.active]: guideVisible,
// })
const { label, diagram } = props

const iconClassName = cx(styles.info_button, {
[styles.active]: guideVisible,
})

const contentClassName = cx(styles.expandable_content, {
[styles.open]: guideVisible,
[styles.open]: false,
})

return (
<>
<div className={styles.table_title}>
<LabelText position={LABEL_LEFT}>{label}</LabelText>
<ClickableIcon
{/* <ClickableIcon
title="info"
name="information"
className={iconClassName}
onClick={toggleGuide}
/>
/> */}
</div>
<div className={contentClassName}>{diagram}</div>
</>
Expand Down

0 comments on commit 2cdcc96

Please sign in to comment.