This commit is contained in:
Gregorio
2018-11-21 17:23:06 +01:00
+3 -3
View File
@@ -28,14 +28,14 @@ class TopBar extends Component {
});
}
handleSubmit(event) {
alert(this.state.query);
//alert(this.state.query);
event.preventDefault();
event.target.reset();
this.props.history.push('/search/'+this.state.query);
}
render() {
return (
<Row>
<Navbar bg="dark" className="py-0 px-1 w-100" expand="md">
<Navbar.Brand>
<Link to="/">HazeTV</Link>
@@ -75,4 +75,4 @@ class TopBar extends Component {
}
}
export default TopBar;
export default withRouter(TopBar);