) => {
+ event.preventDefault();
+ const value = (event.currentTarget as HTMLInputElement).value;
+ const numberValue = Number(value);
+ if (value === '') {
+ updateRule({ bymonthday: undefined });
+ } else if (numberValue < 32 && numberValue > 0) {
+ updateRule({ bymonthday: [numberValue] });
+ }
+ }}
+ />
+ }
-
{(options.freq === 'MONTHLY') &&
}
- {(options.freq === 'YEARLY' && options.bymonth) &&
-
- }
- {options.bymonthday &&
- ) => {
- event.preventDefault();
- const value = (event.currentTarget as HTMLInputElement).value;
- const numberValue = Number(value);
- if (value === '') {
- updateRule({ bymonthday: undefined });
- } else if (numberValue < 32 && numberValue > 0) {
- updateRule({ bymonthday: [numberValue] });
- }
- }}
- />
+
+ {(options.freq === 'YEARLY' && options.bymonth) &&
+
+ Months
+
+ {checkboxMonths}
+
+
}
+
{(options.freq && options.freq !== 'DAILY') &&
- {checkboxWeekDays}
+
+ Weekdays
+
+ {checkboxWeekDays}
+
+
}
Ends