From 104d6311ec8079760910a1f29b3f5e8708b5f9d4 Mon Sep 17 00:00:00 2001 From: Lukas Martinelli Date: Tue, 10 Jan 2017 14:05:46 +0100 Subject: [PATCH] Add missing IconInput --- src/components/inputs/IconInput.jsx | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 src/components/inputs/IconInput.jsx diff --git a/src/components/inputs/IconInput.jsx b/src/components/inputs/IconInput.jsx new file mode 100644 index 0000000..3f43937 --- /dev/null +++ b/src/components/inputs/IconInput.jsx @@ -0,0 +1,29 @@ +import React from 'react' +import AutocompleteInput from './AutocompleteInput' +import input from '../../config/input.js' +import { margins } from '../../config/scales.js' + + +class IconInput extends React.Component { + static propTypes = { + value: React.PropTypes.array.isRequired, + icons: React.PropTypes.array, + style: React.PropTypes.object, + onChange: React.PropTypes.func.isRequired, + } + + static defaultProps = { + icons: [] + } + + render() { + return [f, f])} + onChange={this.props.onChange} + wrapperStyle={this.props.style} + /> + } +} + +export default IconInput