search nav working!

This commit is contained in:
andres alcocer
2018-11-13 19:36:12 -05:00
parent 1cb135b50c
commit 1c657675e6
4 changed files with 13 additions and 82 deletions

View File

@@ -52,14 +52,6 @@ makeAipCall = (searchItem) => {
});
}
// get the user input and pass it to the makeAPICall function
// searchHandler = (event) => {
// // const searchItem = event.target.value;
// // this.makeAipCall(searchItem);
// alert("Hello");
// }
myF = (event) => {
this.setState({
myVal: false
@@ -78,7 +70,7 @@ makeAipCall = (searchItem) => {
return (
<div>
<Navigation showMan={this.myF} />
{this.state.myVal ? <Layout /> : <div onClick={this.myB} className="no">{this.state.rows}</div>}
{this.state.myVal ? <Layout /> : <div onClick={this.myB} className="search-container">{this.state.rows}</div>}
</div>