diff --git a/packages/x-date-pickers-pro/src/DateRangePicker/DateRangePickerToolbar.tsx b/packages/x-date-pickers-pro/src/DateRangePicker/DateRangePickerToolbar.tsx index ca7361d378d4c..a3b4ff70d6d6d 100644 --- a/packages/x-date-pickers-pro/src/DateRangePicker/DateRangePickerToolbar.tsx +++ b/packages/x-date-pickers-pro/src/DateRangePicker/DateRangePickerToolbar.tsx @@ -59,6 +59,10 @@ const DateRangePickerToolbarContainer = styled('div', { display: 'flex', }); +type DateRangePickerToolbarComponent = (( + props: DateRangePickerToolbarProps & React.RefAttributes, +) => React.JSX.Element) & { propTypes?: any }; + /** * Demos: * @@ -126,7 +130,7 @@ const DateRangePickerToolbar = React.forwardRef(function DateRangePickerToolbar< ); -}); +}) as DateRangePickerToolbarComponent; DateRangePickerToolbar.propTypes = { // ----------------------------- Warning --------------------------------