aboutsummaryrefslogtreecommitdiff
path: root/vnext/src/components/SearchBox.js
diff options
context:
space:
mode:
Diffstat (limited to 'vnext/src/components/SearchBox.js')
-rw-r--r--vnext/src/components/SearchBox.js14
1 files changed, 7 insertions, 7 deletions
diff --git a/vnext/src/components/SearchBox.js b/vnext/src/components/SearchBox.js
index 38414c78..612d860b 100644
--- a/vnext/src/components/SearchBox.js
+++ b/vnext/src/components/SearchBox.js
@@ -3,28 +3,28 @@ import PropTypes from 'prop-types';
export default class SearchBox extends React.Component {
constructor(props) {
- super(props)
+ super(props);
this.state = {
search: ''
- }
+ };
}
handleChange = (event) => {
this.setState({
search: event.target.value
- })
+ });
}
onSubmit = (event) => {
- event.preventDefault()
+ event.preventDefault();
this.props.onSearch(this.state.search);
}
render() {
- return <form onSubmit={this.onSubmit}>
+ return (<form onSubmit={this.onSubmit}>
<input name="search" className="text"
placeholder="Search..." value={this.state.search} onChange={this.handleChange} />
- </form>
+ </form>);
}
}
SearchBox.propTypes = {
onSearch: PropTypes.func.isRequired
-}
+};