From 5292830224ea0cdc131753f02be97a70ed064445 Mon Sep 17 00:00:00 2001 From: smb2268 Date: Tue, 26 Mar 2024 10:10:49 -0400 Subject: [PATCH] Code review cleanup comments --- .../Devices/PipetteCard/FlexPipetteCard.tsx | 13 ++++--------- .../PipetteCard/__tests__/FlexPipetteCard.test.tsx | 2 +- app/src/organisms/Devices/PipetteCard/index.tsx | 2 +- 3 files changed, 6 insertions(+), 11 deletions(-) diff --git a/app/src/organisms/Devices/PipetteCard/FlexPipetteCard.tsx b/app/src/organisms/Devices/PipetteCard/FlexPipetteCard.tsx index 778f2f7d8d0..19a99233933 100644 --- a/app/src/organisms/Devices/PipetteCard/FlexPipetteCard.tsx +++ b/app/src/organisms/Devices/PipetteCard/FlexPipetteCard.tsx @@ -21,12 +21,7 @@ import { DropTipWizard } from '../../DropTipWizard' import { AboutPipetteSlideout } from './AboutPipetteSlideout' -import type { - BadPipette, - Mount, - PipetteData, - HostConfig, -} from '@opentrons/api-client' +import type { BadPipette, Mount, PipetteData } from '@opentrons/api-client' import type { PipetteModelSpecs } from '@opentrons/shared-data' import type { PipetteWizardFlow, @@ -66,7 +61,7 @@ export function FlexPipetteCard({ isEstopNotDisengaged, }: FlexPipetteCardProps): JSX.Element { const { t, i18n } = useTranslation(['device_details', 'shared']) - const host = useHost() as HostConfig + const host = useHost() const [ showAboutPipetteSlideout, @@ -258,7 +253,7 @@ export function FlexPipetteCard({ closeFlow={() => setShowDropTipWizard(false)} /> ) : null} - {attachedPipette?.ok && showAboutPipetteSlideout && ( + {attachedPipette?.ok && showAboutPipetteSlideout ? ( setShowAboutPipetteSlideout(false)} /> - )} + ) : null} {showChoosePipette ? ( { pipetteSpecs={pipetteModelSpecs} mount={mount} transform="scale(0.3)" - transformOrigin={'20% 52%'} + transformOrigin="20% 52%" /> ) : null}