+ {label}
} else {
- return
+ return
+ {label}
+
+
}
}
}
@@ -104,13 +112,12 @@ class SpecField extends React.Component {
}
render() {
- const label = labelFromFieldName(this.props.fieldName)
switch(this.props.fieldSpec.type) {
case 'number': return (
@@ -142,7 +149,7 @@ class SpecField extends React.Component {
@@ -151,7 +158,7 @@ class SpecField extends React.Component {
diff --git a/src/fields/string.jsx b/src/fields/string.jsx
index 10155cc..f86b450 100644
--- a/src/fields/string.jsx
+++ b/src/fields/string.jsx
@@ -18,19 +18,16 @@ class StringField extends React.Component {
}
render() {
- return
-
-
-
+ return
}
}