Skip to content

Commit

Permalink
Add to v4 migration guide
Browse files Browse the repository at this point in the history
  • Loading branch information
mbrookes committed Aug 24, 2020
1 parent 57a39a6 commit 03ac7fe
Showing 1 changed file with 29 additions and 1 deletion.
30 changes: 29 additions & 1 deletion docs/src/pages/guides/migration-v4/migration-v4.md
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ This change affects almost all components where you're using the `component` pro

### Expansion Panel

- Rename the `ExpansionPanel` components with `Accordion` to use a more common naming convention:
- Rename the `ExpansionPanel` components to `Accordion` to use a more common naming convention:

```diff
-import ExpansionPanel from '@material-ui/core/ExpansionPanel';
Expand Down Expand Up @@ -253,6 +253,34 @@ This change affects almost all components where you're using the `component` pro
+<Grid justifyContent="center">
```

### GridList

- Rename the `GridList` components to `ImageList` to align with the current Material Design naming.

```diff
-import GridList from '@material-ui/core/GridList';
-import GridListTile from '@material-ui/core/GridListTile';
-import GridListTileBar from '@material-ui/core/GridListTileBar';
+import ImageList from '@material-ui/core/ImageList';
+import ImageListTile from '@material-ui/core/ImageListTile';
+import ImageListTileBar from '@material-ui/core/ImageListTileBar';

-<GridList>
- <GridListTile>
+<ImageList>
+ <ImageListTile>
<img src="file.jpg" alt="Image title" />
- <GridListTileBar
+ <ImageListTileBar
title="Title"
subtitle="Subtitle"
/>
- </GridListTile>
-</GridList>
+ </ImageListTile>
+</ImageList>
```

### Menu

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

0 comments on commit 03ac7fe

Please sign in to comment.