Skip to content

Commit

Permalink
Update EditModules.tsx
Browse files Browse the repository at this point in the history
  • Loading branch information
koji committed Oct 21, 2024
1 parent a0db902 commit f8c3f75
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions protocol-designer/src/components/EditModules.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,12 @@ import { EditMultipleModulesModal } from './modals/EditModulesModal/EditMultiple
import { useBlockingHint } from './Hints/useBlockingHint'
import { MagneticModuleWarningModalContent } from './modals/EditModulesModal/MagneticModuleWarningModalContent'
import { EditModulesModal } from './modals/EditModulesModal'
import type { ModuleModel, } from '@opentrons/shared-data'
import type { ModuleModel, ModuleType } from '@opentrons/shared-data'

export interface EditModulesProps {
moduleToEdit: {
moduleId?: string | null
:
moduleType: ModuleType
}
onCloseClick: () => void
}
Expand All @@ -35,16 +35,16 @@ export interface ModelModuleInfo {
export const EditModules = (props: EditModulesProps): JSX.Element => {
const { onCloseClick, moduleToEdit } = props
const enableMoam = useSelector(getEnableMoam)
const { moduleId, } = moduleToEdit
const { moduleId, moduleType } = moduleToEdit
const _initialDeckSetup = useSelector(stepFormSelectors.getInitialDeckSetup)
const robotType = useSelector(getRobotType)

const MOAM_MODULE_TYPES: [] = enableMoam
const MOAM_MODULE_TYPES: ModuleType[] = enableMoam
? [TEMPERATURE_MODULE_TYPE, HEATERSHAKER_MODULE_TYPE, MAGNETIC_BLOCK_TYPE]
: [TEMPERATURE_MODULE_TYPE]

const showMultipleModuleModal =
robotType === FLEX_ROBOT_TYPE && MOAM_MODULE_TYPES.includes()
robotType === FLEX_ROBOT_TYPE && MOAM_MODULE_TYPES.includes(moduleType)

const moduleOnDeck = moduleId ? _initialDeckSetup.modules[moduleId] : null
const [
Expand Down Expand Up @@ -94,7 +94,7 @@ export const EditModules = (props: EditModulesProps): JSX.Element => {

let modal = (
<EditModulesModal
={}
moduleType={moduleType}
moduleOnDeck={moduleOnDeck}
onCloseClick={onCloseClick}
editModuleSlot={editModuleSlot}
Expand All @@ -107,7 +107,7 @@ export const EditModules = (props: EditModulesProps): JSX.Element => {
<EditMultipleModulesModal
onCloseClick={onCloseClick}
allModulesOnDeck={Object.values(_initialDeckSetup.modules)}
={}
moduleType={moduleType}
/>
)
}
Expand Down

0 comments on commit f8c3f75

Please sign in to comment.