Skip to content

Commit

Permalink
fix indentation
Browse files Browse the repository at this point in the history
  • Loading branch information
siriwatknp committed Nov 18, 2024
1 parent 514a4e6 commit 2fcd5a2
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 14 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1693,12 +1693,12 @@ All of the Tooltip's slot (`*Component`) props were deprecated in favor of equiv

```diff
<Tooltip
- PopperComponent={CustomPopperComponent}
- TransitionComponent={CustomTransitionComponent}
+ slots={{
+ popper: CustomPopperComponent,
+ transition: CustomTransitionComponent,
+ }}
- PopperComponent={CustomPopperComponent}
- TransitionComponent={CustomTransitionComponent}
+ slots={{
+ popper: CustomPopperComponent,
+ transition: CustomTransitionComponent,
+ }}
/>
```

Expand All @@ -1708,12 +1708,12 @@ All of the Tooltip's slot props (`*Props`) props were deprecated in favor of equ

```diff
<Tooltip
- PopperProps={CustomPopperProps}
- TransitionProps={CustomTransitionProps}
+ slotProps={{
+ popper: CustomPopperProps,
+ transition: CustomTransitionProps,
+ }}
- PopperProps={CustomPopperProps}
- TransitionProps={CustomTransitionProps}
+ slotProps={{
+ popper: CustomPopperProps,
+ transition: CustomTransitionProps,
+ }}
/>
```

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import Tooltip from '@mui/material/Tooltip';
import {Tooltip as MyTooltip} from '@mui/material';
import { Tooltip as MyTooltip } from '@mui/material';

<Tooltip
components={{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import Tooltip from '@mui/material/Tooltip';
import {Tooltip as MyTooltip} from '@mui/material';
import { Tooltip as MyTooltip } from '@mui/material';

<Tooltip
slots={{
Expand Down

0 comments on commit 2fcd5a2

Please sign in to comment.