Skip to content

Commit

Permalink
fix import
Browse files Browse the repository at this point in the history
  • Loading branch information
jerader committed Aug 30, 2021
1 parent 133bde6 commit 2c3581f
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 14 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,11 @@ import {
ModuleModel,
ModuleRealType,
} from '@opentrons/shared-data'
import {mockThermocycler as mockThermocyclerFixture, mockMagneticModule as mockMagneticModuleFixture} from '../../../../../redux/modules/__fixtures__/index'
import { getAttachedModules } from '../../../../../redux/modules'
import {
mockThermocycler as mockThermocyclerFixture,
mockMagneticModule as mockMagneticModuleFixture,
} from '../../../../../redux/modules/__fixtures__/index'

jest.mock('../../../../../redux/modules')
jest.mock('../ModuleInfo')
Expand All @@ -36,7 +40,9 @@ jest.mock('@opentrons/shared-data', () => {
inferModuleOrientationFromXCoordinate: jest.fn(),
}
})

const mockGetAttachedModules = getAttachedModules as jest.MockedFunction<
typeof getAttachedModules
>
const mockModuleInfo = ModuleInfo as jest.MockedFunction<typeof ModuleInfo>

const mockModuleViz = ModuleViz as jest.MockedFunction<typeof ModuleViz>
Expand Down
12 changes: 0 additions & 12 deletions app/src/organisms/ProtocolSetup/RunSetupCard/ModuleSetup/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -223,18 +223,6 @@ export function ModuleSetup(props: ModuleSetupProps): JSX.Element {
</RobotWorkSpace>
</Flex>
<Flex justifyContent={JUSTIFY_CENTER} margin={SPACING_4}>
{combinedModules.length - uniqueModules.length === moduleModels.length ?
(
<PrimaryBtn
title={t('proceed_to_labware_setup_step')}
disabled={false}
onClick={expandLabwareSetupStep}
backgroundColor={C_BLUE}
id={'ModuleSetup_proceedToLabwareSetup'}
>
{t('proceed_to_labware_setup_step')}
</PrimaryBtn>
) : (
<PrimaryBtn
title={t('proceed_to_labware_setup_step')}
disabled={proceedToLabwareDisabled}
Expand Down

0 comments on commit 2c3581f

Please sign in to comment.