diff --git a/app/src/organisms/Devices/InstrumentsAndModules.tsx b/app/src/organisms/Devices/InstrumentsAndModules.tsx index 0e55333dba01..caf1522c9b3b 100644 --- a/app/src/organisms/Devices/InstrumentsAndModules.tsx +++ b/app/src/organisms/Devices/InstrumentsAndModules.tsx @@ -226,7 +226,7 @@ export function InstrumentsAndModules({ flexDirection={DIRECTION_COLUMN} gridGap={SPACING.spacing8} > - {!isFlex && ( + {!isFlex ? ( - )} + ) : null} {isFlex && !is96ChannelAttached ? ( = () => { setShowChoosePipette(true) } - const handleAttach = () => { + const handleAttach = (): void => { setShowChoosePipette(false) handleLaunchPipetteWizardFlows(FLOWS.ATTACH) } diff --git a/app/src/organisms/Devices/PipetteCard/__tests__/PipetteCard.test.tsx b/app/src/organisms/Devices/PipetteCard/__tests__/PipetteCard.test.tsx index 05e0ad816f19..6793ae24622f 100644 --- a/app/src/organisms/Devices/PipetteCard/__tests__/PipetteCard.test.tsx +++ b/app/src/organisms/Devices/PipetteCard/__tests__/PipetteCard.test.tsx @@ -10,7 +10,6 @@ import { i18n } from '../../../../i18n' import { getHasCalibrationBlock } from '../../../../redux/config' import { useDispatchApiRequest } from '../../../../redux/robot-api' import { PipetteOverflowMenu } from '../PipetteOverflowMenu' -import { AboutPipetteSlideout } from '../AboutPipetteSlideout' import { PipetteCard } from '..' import { @@ -22,7 +21,6 @@ import type { DispatchApiRequestType } from '../../../../redux/robot-api' vi.mock('../PipetteOverflowMenu') vi.mock('../../../../redux/config') -vi.mock('../AboutPipetteSlideout') vi.mock('../../../../redux/robot-api') vi.mock('@opentrons/react-api-client') vi.mock('../../../../redux/pipettes') @@ -35,12 +33,10 @@ const render = (props: React.ComponentProps) => { const mockRobotName = 'mockRobotName' describe('PipetteCard', () => { - let startWizard: any let dispatchApiRequest: DispatchApiRequestType let props: React.ComponentProps beforeEach(() => { - startWizard = vi.fn() dispatchApiRequest = vi.fn() props = { pipetteModelSpecs: mockLeftSpecs, @@ -50,9 +46,6 @@ describe('PipetteCard', () => { isRunActive: false, isEstopNotDisengaged: false, } - vi.mocked(AboutPipetteSlideout).mockReturnValue( -
mock about slideout
- ) vi.mocked(PipetteOverflowMenu).mockReturnValue(
mock pipette overflow menu
)