Skip to content

Commit 21782f8

Browse files
committed
prettier
1 parent 3fd31ca commit 21782f8

File tree

2 files changed

+16
-16
lines changed

2 files changed

+16
-16
lines changed

docs/src/pages/guides/migration-v4/migration-v4.md

+13-13
Original file line numberDiff line numberDiff line change
@@ -264,24 +264,24 @@ This change affects almost all components where you're using the `component` pro
264264
+<Snackbar anchorOrigin={{ vertical: 'bottom', horizontal: 'center' }} />
265265
```
266266

267-
- The onE* transition props were removed. Use TransitionProps instead.
267+
- The onE\* transition props were removed. Use TransitionProps instead.
268268

269-
```diff
270-
<Snackbar
269+
````diff
270+
<Snackbar
271271
- onEnter={onEnter}
272-
- onEntered={onEntered},
273-
- onEntering={onEntered},
274-
- onExit={onEntered},
275-
- onExited={onEntered},
272+
- onEntered={onEntered},
273+
- onEntering={onEntered},
274+
- onExit={onEntered},
275+
- onExited={onEntered},
276276
- onExiting={onEntered}
277277
/>
278278
<Snackbar
279279
+ TransitionProps={{
280-
+ onEnter,
281-
+ onEntered,
282-
+ onEntering,
283-
+ onExit,
284-
+ onExited,
280+
+ onEnter,
281+
+ onEntered,
282+
+ onEntering,
283+
+ onExit,
284+
+ onExited,
285285
+ onExiting,
286286
+ }}
287287
/>
@@ -297,7 +297,7 @@ This change affects almost all components where you're using the `component` pro
297297
+<Skeleton variant="circular" />
298298
+<Skeleton variant="rectangular" />
299299
-<Skeleton classes={{ circular: 'custom-circle-classname', rectangular: 'custom-rect-classname', }} />
300-
```
300+
````
301301

302302
### TablePagination
303303

packages/material-ui/src/Snackbar/Snackbar.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -213,10 +213,10 @@ const Snackbar = React.forwardRef(function Snackbar(props, ref) {
213213
}
214214

215215
if (TransitionProps !== undefined && TransitionProps.onEnter !== undefined) {
216-
TransitionProps.onEnter = createChainedFunction(handleEnter, TransitionProps.onEnter);
217-
};
216+
TransitionProps.onEnter = createChainedFunction(handleEnter, TransitionProps.onEnter);
217+
}
218218
if (TransitionProps !== undefined && TransitionProps.onExited !== undefined) {
219-
TransitionProps.onExited = createChainedFunction(handleExited, TransitionProps.onExited);
219+
TransitionProps.onExited = createChainedFunction(handleExited, TransitionProps.onExited);
220220
}
221221

222222
return (

0 commit comments

Comments
 (0)