Skip to content

Commit 57069d0

Browse files
Update BreadCrumb.js
1 parent c30662c commit 57069d0

File tree

1 file changed

+36
-22
lines changed

1 file changed

+36
-22
lines changed
Lines changed: 36 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,31 +1,45 @@
11
import React from 'react'
2-
import {Box, TextField, makeStyles} from '@material-ui/core'
2+
import {
3+
Box,
4+
TextField,
5+
makeStyles
6+
} from '@material-ui/core'
37

48
const useStyle = makeStyles(theme => ({
5-
component : {
6-
backgroundColor : '#F6F6F6',
7-
'& > *' :{
8-
margin: theme.spacing(2)
9-
}
10-
11-
}
9+
component: {
10+
backgroundColor: '#F6F6F6',
11+
'& > *': {
12+
margin: theme.spacing(2)
13+
}
14+
15+
}
1216
}))
1317

14-
const BreadCrumb = ( {onTextChange , onCountChange}) => {
15-
const classes = useStyle();
16-
return (
17-
<Box className={classes.component}>
18-
<TextField
19-
label = "Search images"
20-
onChange = { (e) => onTextChange(e.target.value) }
21-
/>
18+
const BreadCrumb = ({
19+
onTextChange,
20+
onCountChange
21+
}) => {
22+
const classes = useStyle();
23+
return ( <
24+
Box className = {
25+
classes.component
26+
} >
27+
<
28+
TextField label = "Search images"
29+
onChange = {
30+
(e) => onTextChange(e.target.value)
31+
}
32+
/>
2233

23-
<TextField
24-
label = "Number of Images"
25-
onChange = { (e) => onCountChange(e.target.value) }
26-
/>
27-
</Box>
28-
)
34+
<
35+
TextField label = "Number of Images"
36+
onChange = {
37+
(e) => onCountChange(e.target.value)
38+
}
39+
/> <
40+
/Box>
41+
)
2942
}
3043

3144
export default BreadCrumb
45+

0 commit comments

Comments
 (0)