Skip to content

Commit

Permalink
fix: update wrong propTypes (#1239)
Browse files Browse the repository at this point in the history
  • Loading branch information
kabaros committed Feb 20, 2023
1 parent c7ccfb2 commit 3840523
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion components/calendar/src/calendar/calendar-table.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,19 @@ export const CalendarTable = ({
)

CalendarTable.propTypes = {
calendarWeekDays: PropTypes.arrayOf(PropTypes.string),
calendarWeekDays: PropTypes.arrayOf(
PropTypes.arrayOf(
PropTypes.shape({
calendarDate: PropTypes.string,
isInCurrentMonth: PropTypes.bool,
isSelected: PropTypes.bool,
isToday: PropTypes.bool,
label: PropTypes.string,
zdt: PropTypes.object,
onClick: PropTypes.func,
}).isRequired
).isRequired
).isRequired,
cellSize: PropTypes.string,
weekDayLabels: PropTypes.arrayOf(PropTypes.string),
width: PropTypes.string,
Expand Down

0 comments on commit 3840523

Please sign in to comment.