-
-
Notifications
You must be signed in to change notification settings - Fork 32.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add deprecation warning to components and componentProps
- Loading branch information
Showing
3 changed files
with
16 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
22 changes: 11 additions & 11 deletions
22
packages/mui-codemod/src/deprecations/backdrop-props/test-cases/actual.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,26 +1,26 @@ | ||
import Backdrop from '@mui/material/Backdrop'; | ||
import { Backdrop as MyBackdrop } from '@mui/material'; | ||
|
||
<Backdrop TransitionComponent={CustomTransition} />; | ||
<MyBackdrop TransitionComponent={CustomTransition} />; | ||
<Backdrop slots={{ | ||
transition: CustomTransition | ||
}} />; | ||
<MyBackdrop slots={{ | ||
transition: CustomTransition | ||
}} />; | ||
<Backdrop | ||
TransitionComponent={CustomTransition} | ||
slots={{ | ||
root: 'div', | ||
}} | ||
/>; | ||
transition: CustomTransition | ||
}} />; | ||
<MyBackdrop | ||
TransitionComponent={CustomTransition} | ||
slots={{ | ||
...outerSlots, | ||
}} | ||
/>; | ||
transition: CustomTransition | ||
}} />; | ||
<Backdrop | ||
TransitionComponent={ComponentTransition} | ||
slots={{ | ||
root: 'div', | ||
transition: SlotTransition | ||
}} | ||
/>; | ||
}} />; | ||
// should skip non MUI components | ||
<NonMuiBackdrop TransitionComponent={CustomTransition} />; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters