list-item-button-prop codemod adds ListItemButton
import to all files
#43527
Labels
bug 🐛
Something doesn't work
component: list
This is the name of the generic UI component, not the React module!
package: codemod
Specific to @mui/codemod
Steps to reproduce
Link to live example: (required)
Steps:
Current behavior
The mod will add imports for
ListItemButton
to all files, regardless of whether or not they useListItem button
or even ifListItemButton
is already present when directly imported from@mui/material
.Expected behavior
The codemod doesn't import a component in every file where it isn't being used and doesn't import the component in a file that already has an import for it.
Context
As part of the migration to MUI v6 I wanted to run this codemod. It just gave me extra work to filter out the changes it made from the changes made in previous steps...
Your environment
npx @mui/envinfo
Search keywords: codemod listitem listitembutton list-item-button-props
The text was updated successfully, but these errors were encountered: