From 885e31111c0640b4d871fbd2f2e565877a37799c Mon Sep 17 00:00:00 2001 From: lukasmartinelli Date: Mon, 12 Sep 2016 19:54:02 +0200 Subject: [PATCH] Add string field --- src/fields/color.jsx | 1 + src/fields/spec.jsx | 8 ++++++++ src/fields/string.jsx | 22 ++++++++++++++++++++++ 3 files changed, 31 insertions(+) create mode 100644 src/fields/string.jsx diff --git a/src/fields/color.jsx b/src/fields/color.jsx index 1b95669..6ca92af 100644 --- a/src/fields/color.jsx +++ b/src/fields/color.jsx @@ -14,6 +14,7 @@ static propTypes = { return } } diff --git a/src/fields/spec.jsx b/src/fields/spec.jsx index 270cb50..47affd5 100644 --- a/src/fields/spec.jsx +++ b/src/fields/spec.jsx @@ -4,6 +4,7 @@ import GlSpec from 'mapbox-gl-style-spec/reference/latest.min.js' import NumberField from './number' import EnumField from './enum' import ColorField from './color' +import StringField from './string' class SpecField extends React.Component { static propTypes = { @@ -37,6 +38,13 @@ class SpecField extends React.Component { doc={this.props.fieldSpec.doc} /> ) + case 'string': return ( + + ) case 'color': return ( + } +} + +export default StringField