Skip to content

Commit eaa1863

Browse files
Sam Kvalemartijnrusschen
authored andcommitted
feat(props): Change todayButton to PropTypes.node. (Hacker0x01#1493)
PropTypes.node is more appropriate for this props.
1 parent 1d1b002 commit eaa1863

File tree

6 files changed

+6
-6
lines changed

6 files changed

+6
-6
lines changed

docs/datepicker.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ General datepicker component.
7474
| `timeFormat` | `string` | | |
7575
| `timeIntervals` | `number` | `30` | |
7676
| `title` | `string` | | |
77-
| `todayButton` | `string` | | |
77+
| `todayButton` | `node` | | |
7878
| `useWeekdaysShort` | `bool` | | |
7979
| `utcOffset` | `union(number\|string)` | | |
8080
| `value` | `string` | | |

docs/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ General datepicker component.
8585
| `timeFormat` | `string` | | |
8686
| `timeIntervals` | `number` | `30` | |
8787
| `title` | `string` | | |
88-
| `todayButton` | `string` | | |
88+
| `todayButton` | `node` | | |
8989
| `useShortMonthInDropdown` | `bool` | | |
9090
| `useWeekdaysShort` | `bool` | | |
9191
| `utcOffset` | `union(number\|string)` | | |

docs/time.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,4 @@
1414
| `onTimeChange` | | `() => {}` | |
1515
| `selected` | `object` | | |
1616
| `timeCaption` | `string` | `"Time"` | |
17-
| `todayButton` | `string` | `null` | |
17+
| `todayButton` | `node` | `null` | |

src/calendar.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ export default class Calendar extends React.Component {
101101
showWeekNumbers: PropTypes.bool,
102102
showYearDropdown: PropTypes.bool,
103103
startDate: PropTypes.object,
104-
todayButton: PropTypes.string,
104+
todayButton: PropTypes.node,
105105
useWeekdaysShort: PropTypes.bool,
106106
formatWeekDay: PropTypes.func,
107107
withPortal: PropTypes.bool,

src/index.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ export default class DatePicker extends React.Component {
139139
tabIndex: PropTypes.number,
140140
timeCaption: PropTypes.string,
141141
title: PropTypes.string,
142-
todayButton: PropTypes.string,
142+
todayButton: PropTypes.node,
143143
useWeekdaysShort: PropTypes.bool,
144144
formatWeekDay: PropTypes.func,
145145
utcOffset: PropTypes.oneOfType([PropTypes.number, PropTypes.string]),

src/time.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ export default class Time extends React.Component {
2020
intervals: PropTypes.number,
2121
selected: PropTypes.object,
2222
onChange: PropTypes.func,
23-
todayButton: PropTypes.string,
23+
todayButton: PropTypes.node,
2424
minTime: PropTypes.object,
2525
maxTime: PropTypes.object,
2626
excludeTimes: PropTypes.array,

0 commit comments

Comments
 (0)