Skip to content

Commit

Permalink
Remove dialog blocking scheduling on low battery
Browse files Browse the repository at this point in the history
  • Loading branch information
Eddasol committed Jan 17, 2025
1 parent 8c24d5d commit 16c2692
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 118 deletions.
Original file line number Diff line number Diff line change
@@ -1,12 +1,7 @@
import { Robot, RobotCapabilitiesEnum } from 'models/Robot'
import { useEffect, useState } from 'react'
import { useRobotContext } from 'components/Contexts/RobotContext'
import {
InsufficientBatteryDialog,
InsufficientPressureDialog,
} from 'components/Displays/ConfirmScheduleDialogs/InsufficientValueDialogs'
import { ScheduleMissionWithLocalizationVerificationDialog } from './LocalizationVerification/ScheduleMissionWithLocalizationVerification'
import { isBatteryTooLow, isRobotPressureTooHigh, isRobotPressureTooLow } from 'utils/IsRobotReadyToRunMissions'

interface ConfirmScheduleDialogProps {
scheduleMissions: () => void
Expand Down Expand Up @@ -38,10 +33,6 @@ export const ScheduleMissionWithConfirmDialogs = ({

if (!robot) {
return <></>
} else if (isBatteryTooLow(robot)) {
return <InsufficientBatteryDialog robot={robot} cancel={closeDialog} />
} else if (isRobotPressureTooLow(robot) || isRobotPressureTooHigh(robot)) {
return <InsufficientPressureDialog robot={robot} cancel={closeDialog} />
} else {
// Auto-localizing robots don't need to confirmation localization. Localization dialog can be skipped
if (
Expand Down

This file was deleted.

0 comments on commit 16c2692

Please sign in to comment.