-
-
Notifications
You must be signed in to change notification settings - Fork 32.4k
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
[TablePagination] Add the rest of slots
and slotProps
.
#44570
[TablePagination] Add the rest of slots
and slotProps
.
#44570
Conversation
Netlify deploy previewhttps://deploy-preview-44570--material-ui.netlify.app/ @material-ui/core: parsed: +0.11% , gzip: +0.09% Bundle size reportDetails of bundle changes (Toolpad) |
/** | ||
* @ignore | ||
*/ | ||
className: PropTypes.string, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this expected?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, this is generated from the proptypes script.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Right, I understand that. My question was, why in this PR related to adding slots, is the className
being removed from the proptypes?
I see it was probably due to className
being removed from the props destructuring here?
If so, that's ok. My only final question would be, if an user was providing className
to this component, would this change make it throw a console warning?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If so, that's ok. My only final question would be, if an user was providing className to this component, would this change make it throw a console warning?
No, it won't throw a warning. Tested with this sandbox.
packages/mui-codemod/src/deprecations/table-pagination-props/test-cases/actual.js
Outdated
Show resolved
Hide resolved
…ecation/table-pagination
…ecation/table-pagination
Part of #41281
closes #43408 (see the fix)
root, toolbar, spacer, selectLabel, menuItem, displayedRows
to slots and slotProps.