Skip to content

Commit

Permalink
[pickers] Fix PickerValidDate usage in DateRangePickerToolbar (#1…
Browse files Browse the repository at this point in the history
  • Loading branch information
flaviendelangle authored Oct 14, 2024
1 parent 497fbcc commit 43c5861
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,10 @@ const DateRangePickerToolbarContainer = styled('div', {
display: 'flex',
});

type DateRangePickerToolbarComponent = (<TDate extends PickerValidDate>(
props: DateRangePickerToolbarProps<TDate> & React.RefAttributes<HTMLDivElement>,
) => React.JSX.Element) & { propTypes?: any };

/**
* Demos:
*
Expand Down Expand Up @@ -126,7 +130,7 @@ const DateRangePickerToolbar = React.forwardRef(function DateRangePickerToolbar<
</DateRangePickerToolbarContainer>
</DateRangePickerToolbarRoot>
);
});
}) as DateRangePickerToolbarComponent;

DateRangePickerToolbar.propTypes = {
// ----------------------------- Warning --------------------------------
Expand Down

0 comments on commit 43c5861

Please sign in to comment.