From 9e6c64fa8307da9a065eba6d247dbdb6a39e2c58 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jos=C3=A9=20Chaves=20Neto?= Date: Wed, 23 Oct 2019 15:21:47 -0300 Subject: [PATCH] Fix eslint errors in listings/elements/title.jsx (#4496) [ci skip] --- app/javascript/githubRepos/githubRepos.jsx | 3 +-- app/javascript/listings/elements/title.jsx | 13 +++++++------ 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/app/javascript/githubRepos/githubRepos.jsx b/app/javascript/githubRepos/githubRepos.jsx index 7238f63a5..52ba8b7e1 100644 --- a/app/javascript/githubRepos/githubRepos.jsx +++ b/app/javascript/githubRepos/githubRepos.jsx @@ -23,8 +23,7 @@ export class GithubRepos extends Component { .then(json => { this.setState({ repos: json }); }) - .catch(error => { - console.log(error); + .catch(() => { this.setState({ erroredOut: true }); }); }; diff --git a/app/javascript/listings/elements/title.jsx b/app/javascript/listings/elements/title.jsx index 472eea888..a8c325b2c 100644 --- a/app/javascript/listings/elements/title.jsx +++ b/app/javascript/listings/elements/title.jsx @@ -3,9 +3,11 @@ import { h } from 'preact'; const domId = 1; -const Title = ( { onChange, defaultValue }) => ( +const Title = ({ onChange, defaultValue }) => (
- + ( onInput={onChange} />
-) +); Title.propTypes = { onChange: PropTypes.func.isRequired, defaultValue: PropTypes.string.isRequired, -} +}; - -export default Title; \ No newline at end of file +export default Title;