diff --git a/src/components/robot/Recordings.tsx b/src/components/robot/Recordings.tsx index 1b3fc7b2..a3db4f7a 100644 --- a/src/components/robot/Recordings.tsx +++ b/src/components/robot/Recordings.tsx @@ -14,7 +14,7 @@ import { useTranslation } from "react-i18next"; interface RecordingsProps { handleEditRecording: (id: string, fileName: string) => void; handleRunRecording: (settings: RunSettings) => void; - handleScheduleRecording: (settings: ScheduleSettings) => void; + handleScheduleRecording: (settings: ScheduleSettings) => Promise; setRecordingInfo: (id: string, name: string) => void; } diff --git a/src/components/robot/ScheduleSettings.tsx b/src/components/robot/ScheduleSettings.tsx index 71951646..7a28d2dc 100644 --- a/src/components/robot/ScheduleSettings.tsx +++ b/src/components/robot/ScheduleSettings.tsx @@ -10,7 +10,7 @@ import { getSchedule, deleteSchedule } from '../../api/storage'; interface ScheduleSettingsProps { isOpen: boolean; - handleStart: (settings: ScheduleSettings) => void; + handleStart: (settings: ScheduleSettings) => Promise; handleClose: () => void; initialSettings?: ScheduleSettings | null; } @@ -272,7 +272,12 @@ export const ScheduleSettingsModal = ({ isOpen, handleStart, handleClose, initia -