Fix prettier integration, format (#31)
* Fix prettier integration, format * Reformat again
This commit is contained in:
@ -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
|
||||
/>
|
||||
|
Reference in New Issue
Block a user