File tree Expand file tree Collapse file tree 1 file changed +36
-22
lines changed
image-finder-app/src/Components Expand file tree Collapse file tree 1 file changed +36
-22
lines changed Original file line number Diff line number Diff line change 1
1
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'
3
7
4
8
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
+ }
12
16
} ) )
13
17
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
+ />
22
33
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
+ )
29
42
}
30
43
31
44
export default BreadCrumb
45
+
You can’t perform that action at this time.
0 commit comments