Skip to content

Commit

Permalink
Fix propTypes unnecessarily marked as required
Browse files Browse the repository at this point in the history
  • Loading branch information
wojtekmaj committed Mar 2, 2023
1 parent f172538 commit a8aab0d
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/MonthView/Days.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ export default function Days(props) {
}

Days.propTypes = {
calendarType: isCalendarType.isRequired,
calendarType: isCalendarType,
showFixedNumberOfWeeks: PropTypes.bool,
showNeighboringMonth: PropTypes.bool,
...tileGroupProps,
Expand Down
2 changes: 1 addition & 1 deletion src/MonthView/WeekNumbers.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ export default function WeekNumbers(props) {

WeekNumbers.propTypes = {
activeStartDate: PropTypes.instanceOf(Date).isRequired,
calendarType: isCalendarType.isRequired,
calendarType: isCalendarType,
onClickWeekNumber: PropTypes.func,
onMouseLeave: PropTypes.func,
showFixedNumberOfWeeks: PropTypes.bool,
Expand Down
2 changes: 1 addition & 1 deletion src/MonthView/Weekdays.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ export default function Weekdays(props) {
}

Weekdays.propTypes = {
calendarType: isCalendarType.isRequired,
calendarType: isCalendarType,
formatShortWeekday: PropTypes.func,
formatWeekday: PropTypes.func,
locale: PropTypes.string,
Expand Down

0 comments on commit a8aab0d

Please sign in to comment.