Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
}}
isOpen={isOpen}
isDisabled={this.props.isDisabled}
isReadOnly={this.props.isReadOnly}
toggleButtonProps={getToggleButtonProps()}
hasError={this.props.hasError}
hasWarning={this.props.hasWarning}
/>
{isOpen && !this.props.isDisabled && (
this.jumpMonth(-1)}
onTodayClick={this.showToday}
onNextMonthClick={() => this.jumpMonth(1)}
onPrevYearClick={() => this.jumpMonth(-12)}
onNextYearClick={() => this.jumpMonth(12)}
/>
{weekdays.map(weekday => (onClear={clearSelection}
isOpen={isOpen}
isDisabled={props.isDisabled}
isReadOnly={props.isReadOnly}
toggleButtonProps={getToggleButtonProps()}
hasError={props.hasError}
hasWarning={props.hasWarning}
/>
{isOpen && !props.isDisabled && !props.isReadOnly && (
jumpMonth(-1)}
onTodayClick={showToday}
onNextMonthClick={() => jumpMonth(1)}
onPrevYearClick={() => jumpMonth(-12)}
onNextYearClick={() => jumpMonth(12)}
/>
{weekdays.map(weekday => (
{weekday}
))}