From 0c7d7d84d402309c248ba42bbd8e5f1b690ac629 Mon Sep 17 00:00:00 2001 From: ahiuchingau <20424172+ahiuchingau@users.noreply.github.com> Date: Tue, 28 May 2024 13:50:23 -0400 Subject: [PATCH] fix js-lint part 1 --- .../DeckConfigurator/AbsorbanceReaderFixture.tsx | 1 - .../src/hardware-sim/DeckConfigurator/index.tsx | 4 +++- components/src/icons/ModuleIcon.tsx | 2 ++ components/src/icons/icon-data.ts | 6 ++++++ shared-data/js/helpers/getModuleVizDims.ts | 12 ++++++++++++ 5 files changed, 23 insertions(+), 2 deletions(-) diff --git a/components/src/hardware-sim/DeckConfigurator/AbsorbanceReaderFixture.tsx b/components/src/hardware-sim/DeckConfigurator/AbsorbanceReaderFixture.tsx index 4c8dce02423..cbeefbb33c6 100644 --- a/components/src/hardware-sim/DeckConfigurator/AbsorbanceReaderFixture.tsx +++ b/components/src/hardware-sim/DeckConfigurator/AbsorbanceReaderFixture.tsx @@ -20,7 +20,6 @@ import type { DeckDefinition, } from '@opentrons/shared-data' - interface AbsorbanceReaderFixtureProps { deckDefinition: DeckDefinition fixtureLocation: CutoutId diff --git a/components/src/hardware-sim/DeckConfigurator/index.tsx b/components/src/hardware-sim/DeckConfigurator/index.tsx index 4943b03806d..9f1a9506a2f 100644 --- a/components/src/hardware-sim/DeckConfigurator/index.tsx +++ b/components/src/hardware-sim/DeckConfigurator/index.tsx @@ -107,7 +107,9 @@ export function DeckConfigurator(props: DeckConfiguratorProps): JSX.Element { STAGING_AREA_SLOT_WITH_MAGNETIC_BLOCK_V1_FIXTURE, ] as CutoutFixtureId[]).includes(cutoutFixtureId) ) - const absorbanceReaderFixtures = deckConfig.filter(({ cutoutFixtureId }) => cutoutFixtureId === ABSORBANCE_READER_V1_FIXTURE ) + const absorbanceReaderFixtures = deckConfig.filter( + ({ cutoutFixtureId }) => cutoutFixtureId === ABSORBANCE_READER_V1_FIXTURE + ) return ( = { childXDimension: SLOT_X, childYDimension: SLOT_Y, }, + // TODO(aa, 2024-05-06): This is stubbed out and needs to be revised! + [ABSORBANCE_READER_TYPE]: { + xOffset: -1 * (SLOT_X * 0.2 + DIVIDER), + yOffset: -1 * DIVIDER, + xDimension: SLOT_X * 1.2 + DIVIDER * 2, + yDimension: SLOT_Y + DIVIDER * 2, + childXOffset: 0, + childYOffset: 0, + childXDimension: SLOT_X, + childYDimension: SLOT_Y, + }, } export const getModuleVizDims = ( orientation: ModuleOrientation,