File tree Expand file tree Collapse file tree 1 file changed +37
-27
lines changed
image-finder-app/src/Components Expand file tree Collapse file tree 1 file changed +37
-27
lines changed Original file line number Diff line number Diff line change 1
1
import React from 'react'
2
- import { Card , makeStyles } from '@material-ui/core'
2
+ import {
3
+ Card ,
4
+ makeStyles
5
+ } from '@material-ui/core'
3
6
4
7
const useStyles = makeStyles ( {
5
- component : {
6
- height : 300 ,
7
- width : '100%' ,
8
- objectFit : 'cover' ,
9
-
10
- } ,
11
- comp : {
12
- padding : 5 ,
13
- margin : 5
14
- }
8
+ component : {
9
+ height : 300 ,
10
+ width : '100%' ,
11
+ objectFit : 'cover' ,
12
+
13
+ } ,
14
+ comp : {
15
+ padding : 5 ,
16
+ margin : 5
17
+ }
15
18
} )
16
19
17
-
18
-
19
-
20
- const DisplayImages = ( { image} ) => {
21
-
22
- const classes = useStyles ( ) ;
23
-
24
- return (
25
-
26
- < Card className = { classes . comp } >
27
- < img src = { image . largeImageURL } alt = "iamge" className = { classes . component } />
28
- </ Card >
29
-
30
-
31
-
32
- )
20
+ const DisplayImages = ( {
21
+ image
22
+ } ) => {
23
+
24
+ const classes = useStyles ( ) ;
25
+
26
+ return (
27
+
28
+ <
29
+ Card className = {
30
+ classes . comp
31
+ } >
32
+ <
33
+ img src = {
34
+ image . largeImageURL
35
+ }
36
+ alt = "iamge"
37
+ className = {
38
+ classes . component
39
+ }
40
+ />
41
+ </ Card >
42
+ )
33
43
}
34
44
35
45
export default DisplayImages
You can’t perform that action at this time.
0 commit comments