From 8fac3ef4c228d11a26a8599e1aa2f5395c0e58c9 Mon Sep 17 00:00:00 2001 From: karishmas6 Date: Tue, 22 Oct 2024 20:39:13 +0530 Subject: [PATCH] feat: remove handleSubmit --- src/components/molecules/ScheduleSettings.tsx | 9 --------- 1 file changed, 9 deletions(-) diff --git a/src/components/molecules/ScheduleSettings.tsx b/src/components/molecules/ScheduleSettings.tsx index 155d0b9d..04d151cb 100644 --- a/src/components/molecules/ScheduleSettings.tsx +++ b/src/components/molecules/ScheduleSettings.tsx @@ -76,15 +76,6 @@ export const ScheduleSettingsModal = ({ isOpen, handleStart, handleClose, initia 'SUNDAY' ]; - const handleSubmit = () => { - // If scheduling is disabled, only send the enabled flag - if (!settings.enabled) { - handleStart({ enabled: false } as ScheduleSettings); - return; - } - handleStart(settings); - }; - const deleteSchedule = () => { };