import React from 'react' import Autocomplete from 'react-autocomplete' import input from '../../config/input' import colors from '../../config/colors' import { margins, fontSizes } from '../../config/scales' class AutocompleteInput extends React.Component { static propTypes = { value: React.PropTypes.string.isRequired, options: React.PropTypes.array.isRequired, style: React.PropTypes.object, onChange: React.PropTypes.func.isRequired, } render() { return item[0]} onSelect={v => this.props.onChange(v)} onChange={(e, v) => this.props.onChange(v)} renderItem={(item, isHighlighted) => (
{item[1]}
)} /> } } export default AutocompleteInput