This repository has been archived on 2022-08-14. You can view files and clone it, but cannot push or open issues or pull requests.
Files
outline/frontend/scenes/Search/components/SearchField/SearchField.js
Tom Moor 2095b3a874 Fix prettier integration, format (#31)
* Fix prettier integration, format

* Reformat again
2017-04-27 21:48:13 -07:00

30 lines
588 B
JavaScript

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