Skip to content

Commit b6ec6c4

Browse files
committed
feat: Update date pickers based on new react-dates props.
1 parent 4dc4639 commit b6ec6c4

2 files changed

Lines changed: 16 additions & 0 deletions

File tree

src/date-range-picker/date-range-picker-wrapper.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,28 +78,35 @@ export class DateRangePickerWrapper extends React.Component<any, any> {
7878
endDatePlaceholderText: this.props.endDatePlaceholderText,
7979
disabled: this.props.disabled,
8080
required: this.props.required,
81+
readOnly: this.props.readOnly,
8182
screenReaderInputMessage: this.props.screenReaderInputMessage,
8283
showClearDates: this.props.showClearDates,
8384
showDefaultInputIcon: this.props.showDefaultInputIcon,
8485
customInputIcon: this.props.customInputIcon,
8586
customArrowIcon: this.props.customArrowIcon,
8687
customCloseIcon: this.props.customCloseIcon,
8788

89+
renderMonth: this.props.renderMonth,
8890
orientation: this.props.orientation,
8991
anchorDirection: this.props.anchorDirection,
9092
horizontalMargin: this.props.horizontalMargin,
9193
withPortal: this.props.withPortal,
9294
withFullScreenPortal: this.props.withFullScreenPortal,
95+
daySize: this.props.daySize,
96+
isRTL: this.props.isRTL,
9397
initialVisibleMonth: this.props.initialVisibleMonth,
98+
firstDayOfWeek: this.props.firstDayOfWeek,
9499
numberOfMonths: this.props.numberOfMonths,
95100
keepOpenOnDateSelect: this.props.keepOpenOnDateSelect,
96101
reopenPickerOnClearDates: this.props.reopenPickerOnClearDates,
97102
renderCalendarInfo: this.props.renderCalendarInfo,
103+
hideKeyboardShortcutsPanel: this.props.hideKeyboardShortcutsPanel,
98104

99105
navPrev: this.props.navPrev,
100106
navNext: this.props.navNext,
101107
onPrevMonthClick: this.props.onPrevMonthClick,
102108
onNextMonthClick: this.props.onNextMonthClick,
109+
onClose: this.props.onClose,
103110

104111
renderDay: this.props.renderDay,
105112
minimumNights: this.props.minimumNights,

src/single-date-picker/single-date-picker-wrapper.ts

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,25 +60,34 @@ export class SingleDatePickerWrapper extends React.Component<any, any> {
6060
placeholder: this.props.placeholder,
6161
disabled: this.props.disabled,
6262
required: this.props.required,
63+
readOnly: this.props.readOnly,
6364
screenReaderInputMessage: this.props.screenReaderInputMessage,
6465
showClearDate: this.props.showClearDate,
6566
customCloseIcon: this.props.customCloseIcon,
67+
showDefaultInputIcon: this.props.showDefaultInputIcon,
68+
customInputIcon: this.props.customInputIcon,
6669

70+
renderMonth: this.props.renderMonth,
6771
orientation: this.props.orientation,
6872
anchorDirection: this.props.anchorDirection,
6973
horizontalMargin: this.props.horizontalMargin,
7074
withPortal: this.props.withPortal,
7175
withFullScreenPortal: this.props.withFullScreenPortal,
7276
initialVisibleMonth: this.props.initialVisibleMonth,
77+
firstDayOfWeek: this.props.firstDayOfWeek,
7378
numberOfMonths: this.props.numberOfMonths,
7479
keepOpenOnDateSelect: this.props.keepOpenOnDateSelect,
7580
reopenPickerOnClearDate: this.props.reopenPickerOnClearDate,
7681
renderCalendarInfo: this.props.renderCalendarInfo,
82+
hideKeyboardShortcutsPanel: this.props.hideKeyboardShortcutsPanel,
83+
daySize: this.props.daySize,
84+
isRTL: this.props.isRTL,
7785

7886
navPrev: this.props.navPrev,
7987
navNext: this.props.navNext,
8088
onPrevMonthClick: this.props.onPrevMonthClick,
8189
onNextMonthClick: this.props.onNextMonthClick,
90+
onClose: this.props.onClose,
8291

8392
renderDay: this.props.renderDay,
8493
enableOutsideDays: this.props.enableOutsideDays,

0 commit comments

Comments
 (0)