Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
const { from, to } = ranges[0];
const selectedDays = day => DateUtils.isDayInRange(day, this.state) ||
ranges.some(v => DateUtils.isDayInRange(day, v));
return (
<div>
<h6>What dates might work for you?</h6>
<div>
{from && to &&
}
</div>
550 ? 2 : 1}
fromMonth={new Date()}
disabledDays={DateUtils.isPastDay}
onDayClick={this.handleDayClick}
classNames={styles}
selectedDays={selectedDays}
/>
</div>
);
}
render() {
const { selectedDays, cursor, offset } = this.state;
return (
<section>
<div style="{{">
<button>{'<'}</button>
<button>{'>'}</button>
</div>
selectedDays:{' '}
{_.map(selectedDays, selected =>
selected.toLocaleDateString('en-US')
).join(', ')}
</section>
);
},
});
return (
<section>
<div style="{{">
<button>{'<'}</button>
<button>{'>'}</button>
</div></section>
render() {
return (
<section style="{{">
</section>
);
},
});
render() {
return (
<section style="{{">
</section>
);
},
});