Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
{...rest}
>
{calendar}
)
}
);
}
}
BpkDatepicker.propTypes = {
// Required
changeMonthLabel: PropTypes.string.isRequired,
closeButtonText: PropTypes.string.isRequired,
daysOfWeek: CustomPropTypes.DaysOfWeek.isRequired,
formatDate: PropTypes.func.isRequired,
formatDateFull: PropTypes.func.isRequired,
formatMonth: PropTypes.func.isRequired,
id: PropTypes.string.isRequired,
title: PropTypes.string.isRequired,
getApplicationElement: PropTypes.func.isRequired,
weekStartsOn: PropTypes.number.isRequired,
// Optional
calendarComponent: PropTypes.oneOfType([PropTypes.node, PropTypes.func]),
date: PropTypes.instanceOf(Date),
dateModifiers: CustomPropTypes.DateModifiers,
inputProps: PropTypes.object, // eslint-disable-line react/forbid-prop-types
markOutsideDays: PropTypes.bool,
markToday: PropTypes.bool,
maxDate: PropTypes.instanceOf(Date),
minDate: PropTypes.instanceOf(Date),