mirror of
https://github.com/emsesp/EMS-ESP32.git
synced 2026-06-13 19:36:26 +03:00
formatting
This commit is contained in:
@@ -286,11 +286,7 @@ const SchedulerDialog = ({
|
||||
onChange={updateFormValue}
|
||||
/>
|
||||
{isTimerSchedule && (
|
||||
<Typography
|
||||
sx={{ ml: 2, mt: 4 }}
|
||||
color="warning"
|
||||
variant="body2"
|
||||
>
|
||||
<Typography sx={{ ml: 2, mt: 4 }} color="warning" variant="body2">
|
||||
{LL.SCHEDULER_HELP_2()}
|
||||
</Typography>
|
||||
)}
|
||||
|
||||
@@ -238,13 +238,13 @@ export const schedulerItemValidation = (
|
||||
NAME_PATTERN_REQUIRED,
|
||||
uniqueNameValidator(schedule, scheduleItem.o_name)
|
||||
],
|
||||
cmd_name: [
|
||||
{ required: true, message: 'Command is required' }
|
||||
]
|
||||
cmd_name: [{ required: true, message: 'Command is required' }]
|
||||
});
|
||||
|
||||
export const uniqueCommandNameValidator = (commands: CommandItem[], o_name?: string) =>
|
||||
createUniqueNameValidator(commands, o_name);
|
||||
export const uniqueCommandNameValidator = (
|
||||
commands: CommandItem[],
|
||||
o_name?: string
|
||||
) => createUniqueNameValidator(commands, o_name);
|
||||
|
||||
export const commandItemValidation = (
|
||||
commands: CommandItem[],
|
||||
|
||||
Reference in New Issue
Block a user