@backstage/migrate-mui-switch-to-bui-switch
Migrates MUI 4 Switch usage to Backstage UI Switch.
Covers
- Named barrel and deep
@material-ui/core/Switchimports FormControlLabelwrappingSwitch→ BUISwitchwithlabeldisabled→isDisabled,checked→isSelected,defaultChecked→defaultSelected- Merging into an existing
@backstage/uiimport
TODOs left for humans
- Non-string
FormControlLabellabels - Unsupported MUI Switch props (
color,size,edge,classes, …)
Won't do
- Non-Switch
FormControlLabelcontrols (handled by radio/checkbox codemod)