Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
private _goPrevious = () => {
if (this.state && this.state.selectedDate) {
this._onSelectDate(addDays(this.state.selectedDate, -1));
}
};
private _goNext = () => {
if (this.state && this.state.selectedDate) {
this._onSelectDate(addDays(this.state.selectedDate, 1));
}
};
}
private _goPrevious = () => {
if (this.state && this.state.selectedDate) {
this._onSelectDate(addDays(this.state.selectedDate, -1));
}
};
private _goNext = () => {
if (this.state && this.state.selectedDate) {
this._onSelectDate(addDays(this.state.selectedDate, 1));
}
};