From 2e98eb4c020b1606ec70345e01c1c1f90e281f0a Mon Sep 17 00:00:00 2001 From: vegano1 Date: Fri, 17 Jan 2025 08:48:56 -0500 Subject: [PATCH] lint --- app/src/organisms/ModuleCard/FlexStackerModuleData.tsx | 2 +- app/src/organisms/ModuleCard/index.tsx | 1 + .../ProtocolSetupModulesAndDeck/ModuleTable.tsx | 3 ++- shared-data/js/constants.ts | 6 +++--- 4 files changed, 7 insertions(+), 5 deletions(-) diff --git a/app/src/organisms/ModuleCard/FlexStackerModuleData.tsx b/app/src/organisms/ModuleCard/FlexStackerModuleData.tsx index 8fd1403f6c9..9ab8c3b9410 100644 --- a/app/src/organisms/ModuleCard/FlexStackerModuleData.tsx +++ b/app/src/organisms/ModuleCard/FlexStackerModuleData.tsx @@ -22,7 +22,7 @@ export const FlexStackerModuleData = ( pulse: false, } switch (moduleData.status) { - case 'storing': + case 'storing': case 'dispensing': { StatusLabelProps.status = moduleData.status StatusLabelProps.backgroundColor = COLORS.blue30 diff --git a/app/src/organisms/ModuleCard/index.tsx b/app/src/organisms/ModuleCard/index.tsx index a4b26a4c2a9..cc7073610fd 100644 --- a/app/src/organisms/ModuleCard/index.tsx +++ b/app/src/organisms/ModuleCard/index.tsx @@ -127,6 +127,7 @@ export const ModuleCard = (props: ModuleCardProps): JSX.Element | null => { const [showCalModal, setShowCalModal] = useState(false) const [targetProps, tooltipProps] = useHoverTooltip() + const runStatus = useCurrentRunStatus() const isFlex = useIsFlex(robotName) const requireModuleCalibration = diff --git a/app/src/organisms/ODD/ProtocolSetup/ProtocolSetupModulesAndDeck/ModuleTable.tsx b/app/src/organisms/ODD/ProtocolSetup/ProtocolSetupModulesAndDeck/ModuleTable.tsx index b1a80fa1749..330ba37b12a 100644 --- a/app/src/organisms/ODD/ProtocolSetup/ProtocolSetupModulesAndDeck/ModuleTable.tsx +++ b/app/src/organisms/ODD/ProtocolSetup/ProtocolSetupModulesAndDeck/ModuleTable.tsx @@ -272,7 +272,8 @@ function ModuleTableItem({ isModuleReady && (module.attachedModuleMatch?.moduleOffset?.last_modified != null || module.attachedModuleMatch?.moduleType === ABSORBANCE_READER_TYPE || - module.attachedModuleMatch?.moduleType === FLEX_STACKER_MODULE_TYPE) && + module.attachedModuleMatch?.moduleType === + FLEX_STACKER_MODULE_TYPE) && conflictedFixture == null ? COLORS.green35 : isNonConnectingModule && conflictedFixture == null diff --git a/shared-data/js/constants.ts b/shared-data/js/constants.ts index 2d856ae5ceb..1690667aff3 100644 --- a/shared-data/js/constants.ts +++ b/shared-data/js/constants.ts @@ -42,8 +42,8 @@ export const THERMOCYCLER_MODULE_V2: 'thermocyclerModuleV2' = export const HEATERSHAKER_MODULE_V1: 'heaterShakerModuleV1' = 'heaterShakerModuleV1' export const ABSORBANCE_READER_V1: 'absorbanceReaderV1' = 'absorbanceReaderV1' -export const FLEX_STACKER_MODULE_V1: 'flexStackerModuleV1' = 'flexStackerModuleV1' - +export const FLEX_STACKER_MODULE_V1: 'flexStackerModuleV1' = + 'flexStackerModuleV1' export const MAGNETIC_BLOCK_V1: 'magneticBlockV1' = 'magneticBlockV1' @@ -577,7 +577,7 @@ export const MODULE_FIXTURES_BY_MODEL: { THERMOCYCLER_V2_FRONT_FIXTURE, ], [ABSORBANCE_READER_V1]: [ABSORBANCE_READER_V1_FIXTURE], - [FLEX_STACKER_MODULE_V1]: [FLEX_STACKER_V1_FIXTURE] + [FLEX_STACKER_MODULE_V1]: [FLEX_STACKER_V1_FIXTURE], } export const FLEX_USB_MODULE_FIXTURES: CutoutFixtureId[] = [