diff --git a/src/widgets/RRule.tsx b/src/widgets/RRule.tsx index de37845..891ab0d 100644 --- a/src/widgets/RRule.tsx +++ b/src/widgets/RRule.tsx @@ -9,7 +9,7 @@ interface PropsType { rrule: RRuleOptions; } type Frequency = 'YEARLY' | 'MONTHLY' | 'WEEKLY' | 'DAILY' | 'HOURLY' | 'MINUTELY' | 'SECONDLY'; - +const disableComplex = true; export interface RRuleOptions { freq: Frequency; interval?: number; @@ -236,58 +236,64 @@ export default function RRuleEteSync(props: PropsType) { }} /> } -
- {(options.freq === 'MONTHLY') && - - } - - - {options.bysetpos && - - } - - - {(options.freq === 'YEARLY' && options.bymonth) && - - Months - - {checkboxMonths} - - - } -
+ { + !disableComplex &&
+ {(options.freq === 'MONTHLY') && + } {options.bysetpos && + } +
}
- + {options.freq === 'YEARLY' && +
+ Months + +
+ } {(options.freq && options.freq !== 'DAILY') && - - Weekdays - - {checkboxWeekDays} - - +
+ Weekdays + +
} Ends