feat: schedule ui
This commit is contained in:
@@ -136,11 +136,10 @@ export const ScheduleSettingsModal = ({ isOpen, handleStart, handleClose, initia
|
|||||||
{
|
{
|
||||||
(schedule !== null) ? (
|
(schedule !== null) ? (
|
||||||
<>
|
<>
|
||||||
<Typography>Robot has a schedule set up:</Typography>
|
<Typography variant='h6' gutterBottom>Robot has a schedule set up</Typography>
|
||||||
<Typography>Run every: {schedule.runEvery} {schedule.runEveryUnit.toLowerCase()}</Typography>
|
<Typography>Run every: {schedule.runEvery} {schedule.runEveryUnit.toLowerCase()}</Typography>
|
||||||
<Typography>Start from: {schedule.startFrom.charAt(0).toUpperCase() + schedule.startFrom.slice(1).toLowerCase()}</Typography>
|
<Typography>Start from: {schedule.startFrom.charAt(0).toUpperCase() + schedule.startFrom.slice(1).toLowerCase()}</Typography>
|
||||||
<Typography>At around: {schedule.atTimeStart}</Typography>
|
<Typography>At around: {schedule.atTimeStart}, {schedule.timezone} Timezone</Typography>
|
||||||
<Typography>Timezone: {schedule.timezone}</Typography>
|
|
||||||
<Box mt={2} display="flex" justifyContent="space-between">
|
<Box mt={2} display="flex" justifyContent="space-between">
|
||||||
<Button
|
<Button
|
||||||
onClick={deleteRobotSchedule}
|
onClick={deleteRobotSchedule}
|
||||||
|
|||||||
Reference in New Issue
Block a user