widgets: name change "RRuleEteSync" to "RRule"

master
Tal Leibman 5 years ago committed by Tom Hacohen
parent c7c8b09e41
commit 0657e79e45

@ -33,7 +33,7 @@ import * as EteSync from 'etesync';
import { getCurrentTimezone } from '../helpers'; import { getCurrentTimezone } from '../helpers';
import { EventType, timezoneLoadFromName } from '../pim-types'; import { EventType, timezoneLoadFromName } from '../pim-types';
import RRuleEteSync, { RRuleOptions } from '../widgets/RRule'; import RRule, { RRuleOptions } from '../widgets/RRule';
interface PropsType { interface PropsType {
@ -357,8 +357,7 @@ class EventEdit extends React.PureComponent<PropsType> {
label="Recurring" label="Recurring"
/> />
</FormGroup> </FormGroup>
{this.state.rruleOptions && <RRule
<RRuleEteSync
onChange={this.handleRRuleChange} onChange={this.handleRRuleChange}
rrule={this.state.rruleOptions ? this.state.rruleOptions : { freq: 'DAILY', interval: 1 }} rrule={this.state.rruleOptions ? this.state.rruleOptions : { freq: 'DAILY', interval: 1 }}
/> />

@ -104,7 +104,7 @@ const styles = {
multiSelect: { minWidth: 120, maxWidth: '100%' }, multiSelect: { minWidth: 120, maxWidth: '100%' },
width: { width: 120 }, width: { width: 120 },
}; };
export default function RRuleEteSync(props: PropsType) { export default function RRule(props: PropsType) {
const options = props.rrule; const options = props.rrule;
function updateRule(newOptions: Partial<RRuleOptions>): void { function updateRule(newOptions: Partial<RRuleOptions>): void {
const updatedOptions = { ...options, ...newOptions }; const updatedOptions = { ...options, ...newOptions };

Loading…
Cancel
Save