Skip to content

Commit a8aab0d

Browse files
committed
Fix propTypes unnecessarily marked as required
1 parent f172538 commit a8aab0d

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

src/MonthView/Days.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ export default function Days(props) {
7373
}
7474

7575
Days.propTypes = {
76-
calendarType: isCalendarType.isRequired,
76+
calendarType: isCalendarType,
7777
showFixedNumberOfWeeks: PropTypes.bool,
7878
showNeighboringMonth: PropTypes.bool,
7979
...tileGroupProps,

src/MonthView/WeekNumbers.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ export default function WeekNumbers(props) {
6161

6262
WeekNumbers.propTypes = {
6363
activeStartDate: PropTypes.instanceOf(Date).isRequired,
64-
calendarType: isCalendarType.isRequired,
64+
calendarType: isCalendarType,
6565
onClickWeekNumber: PropTypes.func,
6666
onMouseLeave: PropTypes.func,
6767
showFixedNumberOfWeeks: PropTypes.bool,

src/MonthView/Weekdays.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ export default function Weekdays(props) {
6464
}
6565

6666
Weekdays.propTypes = {
67-
calendarType: isCalendarType.isRequired,
67+
calendarType: isCalendarType,
6868
formatShortWeekday: PropTypes.func,
6969
formatWeekday: PropTypes.func,
7070
locale: PropTypes.string,

0 commit comments

Comments
 (0)