-
-
Notifications
You must be signed in to change notification settings - Fork 32.3k
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
[codemod] Add utils for *Component
and *Props
props deprecations
#41685
Conversation
}} | ||
slotProps={{ | ||
root: { className: 'foo' }, |
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.
slotProps
is not modified in the backdrop-props
codemod, so there's no need for it on the test case. Same for line 22.
@@ -8,17 +8,18 @@ import { Backdrop as MyBackdrop } from '@mui/material'; | |||
slots={{ | |||
root: 'div', | |||
}} | |||
slotProps={{ |
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.
slotProps
is not modified in the backdrop-props
codemod, so there's no need for it on the test case. Same for line 20.
Netlify deploy previewhttps://deploy-preview-41685--material-ui.netlify.app/ Bundle size report |
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.
LGTM!!
Part of #41281
Add
movePropIntoSlots
andmovePropIntoSlotProps
utils for creating codemods, simplifying the development of new codemods for the*Component
and*Props
props deprecations.Use these new utils on the existing
*Component
and*Props
props deprecations and add tests for edge cases.