feat: display message

This commit is contained in:
karishmas6
2024-10-23 00:15:07 +05:30
parent 81dfa47040
commit ed57ff3d68

View File

@@ -135,6 +135,8 @@ export const ScheduleSettingsModal = ({ isOpen, handleStart, handleClose, initia
<> <>
{ {
(schedule != null) ? ( (schedule != null) ? (
<>
<Typography>Robot is scheduled to run every {schedule.runEvery} {schedule.runEveryUnit} starting from {schedule.startFrom} at {schedule.atTimeStart} to {schedule.atTimeEnd} in {schedule.timezone} timezone.</Typography>
<Box mt={2} display="flex" justifyContent="space-between"> <Box mt={2} display="flex" justifyContent="space-between">
<Button <Button
onClick={deleteRobotSchedule} onClick={deleteRobotSchedule}
@@ -144,6 +146,7 @@ export const ScheduleSettingsModal = ({ isOpen, handleStart, handleClose, initia
Delete Schedule Delete Schedule
</Button> </Button>
</Box> </Box>
</>
) : ( ) : (
<> <>
<Box sx={{ display: 'flex', alignItems: 'center', width: '100%' }}> <Box sx={{ display: 'flex', alignItems: 'center', width: '100%' }}>