From 9f77c2392bd37403c2c4957ed5ee37defa29fe8e Mon Sep 17 00:00:00 2001 From: Felix Hessenberger Date: Sat, 20 Jun 2020 17:11:43 +0200 Subject: [PATCH 1/2] Add missing props for DateRangePickerToolbar (toolbarTitle, toolbarFormat) --- lib/src/DateRangePicker/DateRangePickerView.tsx | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/src/DateRangePicker/DateRangePickerView.tsx b/lib/src/DateRangePicker/DateRangePickerView.tsx index f0d726c63..9b3170dce 100644 --- a/lib/src/DateRangePicker/DateRangePickerView.tsx +++ b/lib/src/DateRangePicker/DateRangePickerView.tsx @@ -67,6 +67,8 @@ export const DateRangePickerView: React.FC = ({ endText, className, DateInputProps, + toolbarTitle, + toolbarFormat, ...other }) => { const now = useNow(); @@ -201,6 +203,8 @@ export const DateRangePickerView: React.FC = ({ setCurrentlySelectingRangeEnd={setCurrentlySelectingRangeEnd} startText={startText} endText={endText} + toolbarTitle={toolbarTitle} + toolbarFormat={toolbarFormat} /> )} From b08f4e9a60625c47ffbc37ed292b5bc3b2f8935e Mon Sep 17 00:00:00 2001 From: Olivier Tassinari Date: Mon, 22 Jun 2020 11:05:55 +0200 Subject: [PATCH 2/2] sort prop asc --- lib/src/DateRangePicker/DateRangePickerView.tsx | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/lib/src/DateRangePicker/DateRangePickerView.tsx b/lib/src/DateRangePicker/DateRangePickerView.tsx index 9b3170dce..a9d36e6d0 100644 --- a/lib/src/DateRangePicker/DateRangePickerView.tsx +++ b/lib/src/DateRangePicker/DateRangePickerView.tsx @@ -45,30 +45,30 @@ interface DateRangePickerViewProps } export const DateRangePickerView: React.FC = ({ - open, calendars = 2, + className, currentlySelectingRangeEnd, date, + DateInputProps, disableAutoMonthSwitching = false, disableFuture, disableHighlightToday, disablePast, + endText, + isMobileKeyboardViewOpen, maxDate: unparsedMaxDate = defaultMaxDate, minDate: unparsedMinDate = defaultMinDate, onDateChange, onMonthChange, + open, reduceAnimations = defaultReduceAnimations, setCurrentlySelectingRangeEnd, shouldDisableDate, - toggleMobileKeyboardView, - isMobileKeyboardViewOpen, showToolbar, startText, - endText, - className, - DateInputProps, - toolbarTitle, + toggleMobileKeyboardView, toolbarFormat, + toolbarTitle, ...other }) => { const now = useNow();