Skip to content

Commit

Permalink
prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
mbrookes committed Aug 8, 2020
1 parent 3fd31ca commit 21782f8
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 16 deletions.
26 changes: 13 additions & 13 deletions docs/src/pages/guides/migration-v4/migration-v4.md
Original file line number Diff line number Diff line change
Expand Up @@ -264,24 +264,24 @@ This change affects almost all components where you're using the `component` pro
+<Snackbar anchorOrigin={{ vertical: 'bottom', horizontal: 'center' }} />
```

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

```diff
<Snackbar
````diff
<Snackbar
- onEnter={onEnter}
- onEntered={onEntered},
- onEntering={onEntered},
- onExit={onEntered},
- onExited={onEntered},
- onEntered={onEntered},
- onEntering={onEntered},
- onExit={onEntered},
- onExited={onEntered},
- onExiting={onEntered}
/>
<Snackbar
+ TransitionProps={{
+ onEnter,
+ onEntered,
+ onEntering,
+ onExit,
+ onExited,
+ onEnter,
+ onEntered,
+ onEntering,
+ onExit,
+ onExited,
+ onExiting,
+ }}
/>
Expand All @@ -297,7 +297,7 @@ This change affects almost all components where you're using the `component` pro
+<Skeleton variant="circular" />
+<Skeleton variant="rectangular" />
-<Skeleton classes={{ circular: 'custom-circle-classname', rectangular: 'custom-rect-classname', }} />
```
````

### TablePagination

Expand Down
6 changes: 3 additions & 3 deletions packages/material-ui/src/Snackbar/Snackbar.js
Original file line number Diff line number Diff line change
Expand Up @@ -213,10 +213,10 @@ const Snackbar = React.forwardRef(function Snackbar(props, ref) {
}

if (TransitionProps !== undefined && TransitionProps.onEnter !== undefined) {
TransitionProps.onEnter = createChainedFunction(handleEnter, TransitionProps.onEnter);
};
TransitionProps.onEnter = createChainedFunction(handleEnter, TransitionProps.onEnter);
}
if (TransitionProps !== undefined && TransitionProps.onExited !== undefined) {
TransitionProps.onExited = createChainedFunction(handleExited, TransitionProps.onExited);
TransitionProps.onExited = createChainedFunction(handleExited, TransitionProps.onExited);
}

return (
Expand Down

0 comments on commit 21782f8

Please sign in to comment.