aboutsummaryrefslogtreecommitdiff
path: root/vnext/src/components/SearchBox.js
diff options
context:
space:
mode:
authorGravatar Vitaly Takmazov2018-07-06 02:11:40 +0300
committerGravatar Vitaly Takmazov2023-01-13 10:37:53 +0300
commitea1b9039ae221355cfaabb16fc43dab5917bea56 (patch)
tree9e9c40a33cfcbd69062dae77a68964929f952368 /vnext/src/components/SearchBox.js
parent91faf0911184bb430170d021195d008b977e0ac4 (diff)
Fix eslint warnings
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
-}
+};