File tree Expand file tree Collapse file tree 1 file changed +23
-14
lines changed
image-finder-app/src/Components Expand file tree Collapse file tree 1 file changed +23
-14
lines changed Original file line number Diff line number Diff line change 1
-
2
- import { Grid } from '@material-ui/core' ;
1
+ import {
2
+ Grid
3
+ } from '@material-ui/core' ;
3
4
4
5
import DisplayImages from './DisplayImages' ;
5
6
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
+ ) )
17
24
18
- )
25
+ }
26
+ </ Grid >
27
+ )
19
28
}
20
29
21
30
export default Image
You can’t perform that action at this time.
0 commit comments