Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[charts] Fix some bad practice with useSlotProps #13141

Merged
merged 8 commits into from
May 16, 2024
Prev Previous commit
Next Next commit
pickers: remove slots from additionalProps
alexfauquette committed May 16, 2024

Verified

This commit was signed with the committer’s verified signature. The key has been revoked.
eggplants haruna
commit 15e029262268a38ea468c2ea1ff5369bf7934432
4 changes: 1 addition & 3 deletions packages/x-date-pickers/src/DateCalendar/DateCalendar.tsx
Original file line number Diff line number Diff line change
@@ -214,8 +214,6 @@ export const DateCalendar = React.forwardRef(function DateCalendar<TDate extends
reduceAnimations,
timezone,
labelId: gridLabelId,
slots,
slotProps,
},
ownerState: props,
});
@@ -336,7 +334,7 @@ export const DateCalendar = React.forwardRef(function DateCalendar<TDate extends
ownerState={ownerState}
{...other}
>
<CalendarHeader {...calendarHeaderProps} />
<CalendarHeader {...calendarHeaderProps} slots={slots} slotProps={slotProps} />
<DateCalendarViewTransitionContainer
reduceAnimations={reduceAnimations}
className={classes.viewTransitionContainer}