Skip to content

Commit

Permalink
format
Browse files Browse the repository at this point in the history
  • Loading branch information
vegano1 committed Oct 28, 2024
1 parent ddc24cb commit d9f9175
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 11 deletions.
6 changes: 3 additions & 3 deletions app/src/organisms/EmergencyStop/EstopMissingModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ export function EstopMissingModal({
<TouchscreenModal robotName={robotName} closeModal={closeModal} />
) : (
<>
{isDismissedModal === false ? (
{!isDismissedModal ? (
<DesktopModal
robotName={robotName}
closeModal={closeModal}
Expand Down Expand Up @@ -81,7 +81,7 @@ function TouchscreenModal({
{t('connect_the_estop_to_continue')}
</LegacyStyledText>
<LegacyStyledText as="p">
{t('estop_missing_description', { robotName: robotName })}
{t('estop_missing_description', { robotName })}
</LegacyStyledText>
</Flex>
</OddModal>
Expand Down Expand Up @@ -121,7 +121,7 @@ function DesktopModal({
{t('connect_the_estop_to_continue')}
</LegacyStyledText>
<LegacyStyledText>
{t('estop_missing_description', { robotName: robotName })}
{t('estop_missing_description', { robotName })}
</LegacyStyledText>
</Flex>
</Modal>
Expand Down
2 changes: 1 addition & 1 deletion app/src/organisms/EmergencyStop/EstopTakeover.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import { EstopMissingModal } from './EstopMissingModal'
import { useIsUnboxingFlowOngoing } from '/app/redux-resources/config'
import { getLocalRobot } from '/app/redux/discovery'
import { PHYSICALLY_ENGAGED, NOT_PRESENT, DISENGAGED } from './constants'
import { EstopState } from '@opentrons/api-client'
import { type EstopState } from '@opentrons/api-client'

const ESTOP_CURRENTLY_DISENGAGED_REFETCH_INTERVAL_MS = 10000
const ESTOP_CURRENTLY_ENGAGED_REFETCH_INTERVAL_MS = 1000
Expand Down
13 changes: 6 additions & 7 deletions app/src/resources/modules/hooks/usePlacePlateReaderLid.ts
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
import {
CreateCommand,
OnDeckLabwareLocation,
ModuleLocation,
type CreateCommand,
type OnDeckLabwareLocation,
type ModuleLocation,
} from '@opentrons/shared-data'
import { UseRobotControlCommandsProps } from '/app/resources/maintenance_runs'
import { type UseRobotControlCommandsProps , useRobotControlCommands } from '/app/resources/maintenance_runs'
import { useRunCurrentState } from '@opentrons/react-api-client'
import { useCurrentRunId } from '../../runs'
import { useRobotControlCommands } from '/app/resources/maintenance_runs'

interface UsePlacePlateReaderLidResult {
handlePlaceReaderLid: () => Promise<void>
Expand Down Expand Up @@ -58,15 +57,15 @@ export function usePlacePlateReaderLid(

return {
handlePlaceReaderLid,
isExecuting: isExecuting,
isExecuting,
isValidPlateReaderMove,
}
}

const buildLoadModuleCommand = (location: ModuleLocation): CreateCommand => {
return {
commandType: 'loadModule' as const,
params: { model: 'absorbanceReaderV1', location: location },
params: { model: 'absorbanceReaderV1', location },
}
}

Expand Down

0 comments on commit d9f9175

Please sign in to comment.