Skip to content

Commit f22e26c

Browse files
Update Image.js
1 parent 9051c4e commit f22e26c

File tree

1 file changed

+23
-14
lines changed

1 file changed

+23
-14
lines changed
Lines changed: 23 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,30 @@
1-
2-
import { Grid } from '@material-ui/core';
1+
import {
2+
Grid
3+
} from '@material-ui/core';
34

45
import DisplayImages from './DisplayImages';
56

6-
const Image = ({ data }) => {
7-
// console.log("data",data);
8-
return (
9-
<Grid container>
10-
{
11-
data.map(image => (
12-
<Grid xs={3} item key={image.id}> <DisplayImages image={image} /> </Grid>
13-
))
14-
15-
}
16-
</Grid>
7+
const Image = ({
8+
data
9+
}) => {
10+
// console.log("data",data);
11+
return ( <
12+
Grid container > {
13+
data.map(image => ( <
14+
Grid xs = {
15+
3
16+
}
17+
item key = {
18+
image.id
19+
} > < DisplayImages image = {
20+
image
21+
}
22+
/> </Grid >
23+
))
1724

18-
)
25+
}
26+
</Grid>
27+
)
1928
}
2029

2130
export default Image

0 commit comments

Comments
 (0)