Skip to content

Commit

Permalink
Add missing props for DateRangePickerToolbar (#1914)
Browse files Browse the repository at this point in the history
* Add missing props for DateRangePickerToolbar (toolbarTitle, toolbarFormat)

* sort prop asc

Co-authored-by: Olivier Tassinari <[email protected]>
  • Loading branch information
felixh10r and oliviertassinari authored Jun 22, 2020
1 parent d1fbfbb commit f4c87f0
Showing 1 changed file with 10 additions and 6 deletions.
16 changes: 10 additions & 6 deletions lib/src/DateRangePicker/DateRangePickerView.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -45,28 +45,30 @@ interface DateRangePickerViewProps
}

export const DateRangePickerView: React.FC<DateRangePickerViewProps> = ({
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,
toggleMobileKeyboardView,
toolbarFormat,
toolbarTitle,
...other
}) => {
const now = useNow();
Expand Down Expand Up @@ -201,6 +203,8 @@ export const DateRangePickerView: React.FC<DateRangePickerViewProps> = ({
setCurrentlySelectingRangeEnd={setCurrentlySelectingRangeEnd}
startText={startText}
endText={endText}
toolbarTitle={toolbarTitle}
toolbarFormat={toolbarFormat}
/>
)}

Expand Down

0 comments on commit f4c87f0

Please sign in to comment.