Skip to content

Commit

Permalink
remove unneeded prop
Browse files Browse the repository at this point in the history
  • Loading branch information
jerader committed Nov 21, 2024
1 parent bb528f1 commit 83713ee
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ import type {
interface MultichannelSubstepProps {
trashName: AdditionalEquipmentName | null
rowGroup: StepItemSourceDestRow[]
ingredNames: WellIngredientNames
stepId: string
substepIndex: number
selectSubstep: (substepIdentifier: SubstepIdentifier) => void
Expand All @@ -39,7 +38,6 @@ export function MultichannelSubstep(
stepId,
selectSubstep,
substepIndex,
ingredNames,
trashName,
isSameLabware,
} = props
Expand Down Expand Up @@ -107,7 +105,6 @@ export function MultichannelSubstep(
trashName={trashName}
key={rowKey}
volume={row.volume}
ingredNames={ingredNames}
source={row.source}
dest={row.dest}
stepId={stepId}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ import { MultichannelSubstep } from './MultichannelSubstep'
import type {
SourceDestSubstepItem,
SubstepIdentifier,
WellIngredientNames,
} from '../../../../steplist'
import { useSelector } from 'react-redux'
import {
Expand All @@ -14,13 +13,12 @@ import {

interface PipettingSubstepsProps {
substeps: SourceDestSubstepItem
ingredNames: WellIngredientNames
selectSubstep: (substepIdentifier: SubstepIdentifier) => void
hoveredSubstep?: SubstepIdentifier | null
}

export function PipettingSubsteps(props: PipettingSubstepsProps): JSX.Element {
const { substeps, selectSubstep, hoveredSubstep, ingredNames } = props
const { substeps, selectSubstep, hoveredSubstep } = props
const stepId = substeps.parentStepId
const formData = useSelector(getSavedStepForms)[stepId]
const additionalEquipment = useSelector(getAdditionalEquipment)
Expand Down Expand Up @@ -52,7 +50,6 @@ export function PipettingSubsteps(props: PipettingSubstepsProps): JSX.Element {
stepId={substeps.parentStepId}
substepIndex={groupKey}
selectSubstep={selectSubstep}
ingredNames={ingredNames}
isSameLabware={isSameLabware}
/>
)
Expand All @@ -64,7 +61,6 @@ export function PipettingSubsteps(props: PipettingSubstepsProps): JSX.Element {
selectSubstep={selectSubstep}
stepId={substeps.parentStepId}
substepIndex={substepIndex}
ingredNames={ingredNames}
volume={row.volume}
source={row.source}
dest={row.dest}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ import {
StyledText,
Toolbox,
} from '@opentrons/components'
import { selectors as labwareIngredSelectors } from '../../../../labware-ingred/selectors'
import { getSubsteps } from '../../../../file-data/selectors'
import { getHoveredSubstep } from '../../../../ui/steps'
import {
Expand Down Expand Up @@ -40,7 +39,6 @@ export function SubstepsToolbox(
const substeps = useSelector(getSubsteps)[stepId]
const formData = useSelector(getSavedStepForms)[stepId]
const hoveredSubstep = useSelector(getHoveredSubstep)
const ingredNames = useSelector(labwareIngredSelectors.getLiquidNamesById)
const highlightSubstep = (payload: SubstepIdentifier): HoverOnSubstepAction =>
dispatch(hoverOnSubstep(payload))

Expand Down Expand Up @@ -85,7 +83,6 @@ export function SubstepsToolbox(
) : (
<PipettingSubsteps
key="substeps"
ingredNames={ingredNames}
substeps={substeps}
hoveredSubstep={hoveredSubstep}
selectSubstep={highlightSubstep}
Expand Down

0 comments on commit 83713ee

Please sign in to comment.