diff --git a/src/components/molecules/ScheduleSettings.tsx b/src/components/molecules/ScheduleSettings.tsx index 33df99d9..0fb0abaf 100644 --- a/src/components/molecules/ScheduleSettings.tsx +++ b/src/components/molecules/ScheduleSettings.tsx @@ -86,7 +86,7 @@ export const ScheduleSettingsModal = ({ isOpen, handleStart, handleClose, initia }; const deleteSchedule = () => { - + }; return ( @@ -103,89 +103,89 @@ export const ScheduleSettingsModal = ({ isOpen, handleStart, handleClose, initia '& > *': { marginBottom: '20px' }, }}> Schedule Settings - <> - - Run once every - handleChange('runEvery', parseInt(e.target.value))} - sx={textStyle} - inputProps={{ min: 1 }} - /> - handleChange('runEveryUnit', e.target.value)} - sx={dropDownStyle} - > - {units.map((unit) => ( - {unit} - ))} - - + <> + + Run once every + handleChange('runEvery', parseInt(e.target.value))} + sx={textStyle} + inputProps={{ min: 1 }} + /> + handleChange('runEveryUnit', e.target.value)} + sx={dropDownStyle} + > + {units.map((unit) => ( + {unit} + ))} + + - - Start from / On - handleChange('startFrom', e.target.value)} - sx={dropDownStyle} - > - {days.map((day) => ( - {day} - ))} - - + + Start from / On + handleChange('startFrom', e.target.value)} + sx={dropDownStyle} + > + {days.map((day) => ( + {day} + ))} + + - {['MINUTES', 'HOURS'].includes(settings.runEveryUnit) ? ( - - - In Between - handleChange('atTimeStart', e.target.value)} - sx={textStyle} - /> - handleChange('atTimeEnd', e.target.value)} - sx={textStyle} - /> - - - ) : ( - - At Around + {['MINUTES', 'HOURS'].includes(settings.runEveryUnit) ? ( + + + In Between handleChange('atTimeStart', e.target.value)} sx={textStyle} /> + handleChange('atTimeEnd', e.target.value)} + sx={textStyle} + /> - )} - - - Timezone - handleChange('timezone', e.target.value)} - sx={dropDownStyle} - > - {validMomentTimezones.map((tz) => ( - {tz} - ))} - - + ) : ( + + At Around + handleChange('atTimeStart', e.target.value)} + sx={textStyle} + /> + + )} + + + Timezone + handleChange('timezone', e.target.value)} + sx={dropDownStyle} + > + {validMomentTimezones.map((tz) => ( + {tz} + ))} + + +