File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -43,8 +43,13 @@ class App extends Component {
4343 < div >
4444 < Navbar title = "Github Finder" icon = "fab fa-github" />
4545 < div className = "container" >
46- < Search searchUsers = { this . searchUsers } clearUsers = { this . clearUsers } showClear = { this . state . users . length > 0 ? true : false } />
47- < Users loading = { this . state . loading } users = { this . state . users } />
46+ < Search
47+ searchUsers = { this . searchUsers }
48+ clearUsers = { this . clearUsers }
49+ showClear = { this . state . users . length > 0 ? true : false } />
50+ < Users
51+ loading = { this . state . loading }
52+ users = { this . state . users } />
4853 </ div >
4954 </ div >
5055 ) ;
Original file line number Diff line number Diff line change @@ -37,7 +37,7 @@ class Search extends Component {
3737 value = "Search"
3838 className = "btn btn-dark btn-block" />
3939 </ form >
40- { this . state . showClear &&
40+ { this . props . showClear &&
4141 < button className = "btn btn-light btn-block" onClick = { this . props . clearUsers } >
4242 Clear
4343 </ button >
You can’t perform that action at this time.
0 commit comments