Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
Use git diff format (two space tab)
  • Loading branch information
DiegoAndai committed Feb 7, 2024
commit 0303b4ac60da72cfbd3d25c1dca036870282193c
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@ The Accordion's `TransitionComponent` was deprecated in favor of `slots.transiti

```diff
<Accordion
- TransitionComponent={CustomTransition}
+ slots={{ transition: CustomTransition }}
- TransitionComponent={CustomTransition}
+ slots={{ transition: CustomTransition }}
/>
```

Expand All @@ -45,7 +45,7 @@ The Accordion's `TransitionProps` was deprecated in favor of `slotProps.transiti

```diff
<Accordion
- TransitionProps={{ unmountOnExit: true }}
+ slotProps={{ transition: { unmountOnExit: true } }}
- TransitionProps={{ unmountOnExit: true }}
+ slotProps={{ transition: { unmountOnExit: true } }}
/>
```
8 changes: 4 additions & 4 deletions packages/mui-codemod/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -80,10 +80,10 @@ A combination of all deprecations.

```diff
<Accordion
- TransitionComponent={CustomTransition}
- TransitionProps={{ unmountOnExit: true }}
+ slots={{ transition: CustomTransition }}
+ slotProps={{ transition: { unmountOnExit: true } }}
- TransitionComponent={CustomTransition}
- TransitionProps={{ unmountOnExit: true }}
+ slots={{ transition: CustomTransition }}
+ slotProps={{ transition: { unmountOnExit: true } }}
/>
```

Expand Down