Fix prettier integration, format (#31)

* Fix prettier integration, format

* Reformat again
This commit is contained in:
Tom Moor
2017-04-27 21:48:13 -07:00
committed by GitHub
parent 51fade7439
commit 2095b3a874
74 changed files with 823 additions and 808 deletions

View File

@ -3,22 +3,21 @@ import { observer } from 'mobx-react';
import styles from './SearchField.scss';
@observer
class SearchField extends React.Component {
@observer class SearchField extends React.Component {
static propTypes = {
onChange: PropTypes.func,
}
};
onChange = (event) => {
onChange = event => {
this.props.onChange(event.currentTarget.value);
}
};
render() {
return (
<div className={ styles.container }>
<div className={styles.container}>
<input
onChange={ this.onChange }
className={ styles.field }
onChange={this.onChange}
className={styles.field}
placeholder="Search"
autoFocus
/>