From ffd9b08f068054816ae476382b140bd2f6923aeb Mon Sep 17 00:00:00 2001 From: Jamey Huffnagle Date: Fri, 17 Jan 2025 16:00:22 -0500 Subject: [PATCH] lint --- .../ErrorRecoveryFlows/hooks/useRecoveryToasts.ts | 1 - .../hooks/useLPCInitialState/index.ts | 3 ++- .../LabwarePositionCheck/steps/CheckItem/index.tsx | 10 +++++++--- .../steps/ResultsSummary/OffsetTable.tsx | 2 +- 4 files changed, 10 insertions(+), 6 deletions(-) diff --git a/app/src/organisms/ErrorRecoveryFlows/hooks/useRecoveryToasts.ts b/app/src/organisms/ErrorRecoveryFlows/hooks/useRecoveryToasts.ts index 533b9877f72..7c0ea974149 100644 --- a/app/src/organisms/ErrorRecoveryFlows/hooks/useRecoveryToasts.ts +++ b/app/src/organisms/ErrorRecoveryFlows/hooks/useRecoveryToasts.ts @@ -110,7 +110,6 @@ export function useRecoveryFullCommandText( ): string | null { const { commandTextData, stepNumber } = props - // TODO TOME: I think you are looking one command to far, for some reason. const relevantCmdIdx = stepNumber ?? -1 const relevantCmd = commandTextData?.commands[relevantCmdIdx - 1] ?? null diff --git a/app/src/organisms/LabwarePositionCheck/hooks/useLPCInitialState/index.ts b/app/src/organisms/LabwarePositionCheck/hooks/useLPCInitialState/index.ts index b7974ea0093..1be51e556e3 100644 --- a/app/src/organisms/LabwarePositionCheck/hooks/useLPCInitialState/index.ts +++ b/app/src/organisms/LabwarePositionCheck/hooks/useLPCInitialState/index.ts @@ -1,6 +1,7 @@ import { useDispatch } from 'react-redux' -import { getLabwareDefinitionsFromCommands } from '/app/local-resources/labware' +import { getLabwareDefinitionsFromCommands } from '@opentrons/components' + import { useNotifyDeckConfigurationQuery } from '/app/resources/deck_configuration' import { startLPC } from '/app/redux/protocol-runs' import { getLPCSteps } from './utils' diff --git a/app/src/organisms/LabwarePositionCheck/steps/CheckItem/index.tsx b/app/src/organisms/LabwarePositionCheck/steps/CheckItem/index.tsx index 7f6f124e694..fa7366af6fc 100644 --- a/app/src/organisms/LabwarePositionCheck/steps/CheckItem/index.tsx +++ b/app/src/organisms/LabwarePositionCheck/steps/CheckItem/index.tsx @@ -1,11 +1,15 @@ import { Trans, useTranslation } from 'react-i18next' import { useDispatch, useSelector } from 'react-redux' -import { DIRECTION_COLUMN, Flex, LegacyStyledText } from '@opentrons/components' +import { + DIRECTION_COLUMN, + Flex, + LegacyStyledText, + getLabwareDisplayLocation, +} from '@opentrons/components' import { NAV_STEPS } from '/app/organisms/LabwarePositionCheck/constants' import { FLEX_ROBOT_TYPE } from '@opentrons/shared-data' -import { getLabwareDisplayLocation } from '/app/local-resources/labware' import { UnorderedList } from '/app/molecules/UnorderedList' import { setFinalPosition, @@ -21,11 +25,11 @@ import { } from '/app/redux/protocol-runs' import { getIsOnDevice } from '/app/redux/config' +import type { DisplayLocationParams } from '@opentrons/components' import type { CheckPositionsStep, LPCStepProps, } from '/app/organisms/LabwarePositionCheck/types' -import type { DisplayLocationParams } from '/app/local-resources/labware' import type { State } from '/app/redux/types' import type { LPCWizardState } from '/app/redux/protocol-runs' diff --git a/app/src/organisms/LabwarePositionCheck/steps/ResultsSummary/OffsetTable.tsx b/app/src/organisms/LabwarePositionCheck/steps/ResultsSummary/OffsetTable.tsx index b5514344c24..e471d16ba51 100644 --- a/app/src/organisms/LabwarePositionCheck/steps/ResultsSummary/OffsetTable.tsx +++ b/app/src/organisms/LabwarePositionCheck/steps/ResultsSummary/OffsetTable.tsx @@ -12,10 +12,10 @@ import { SPACING, LegacyStyledText, TYPOGRAPHY, + getLabwareDisplayLocation, } from '@opentrons/components' import { selectLwDisplayName } from '/app/redux/protocol-runs' -import { getLabwareDisplayLocation } from '/app/local-resources/labware' import type { LabwareDefinition2 } from '@opentrons/shared-data' import type { LabwareOffsetCreateData } from '@opentrons/api-client'