diff --git a/client/src/components/formHelpers/FormFields.js b/client/src/components/formHelpers/FormFields.js index bb2246cb45..930078e438 100644 --- a/client/src/components/formHelpers/FormFields.js +++ b/client/src/components/formHelpers/FormFields.js @@ -6,11 +6,10 @@ import { Col, ControlLabel, FormControl, + FormGroup, HelpBlock } from '@freecodecamp/react-bootstrap'; -import './form-fields.css'; - const propTypes = { errors: PropTypes.objectOf(PropTypes.string), fields: PropTypes.objectOf( @@ -48,15 +47,12 @@ function FormFields(props) { const key = kebabCase(name); const type = name in types ? types[name] : 'text'; return ( -
- + + {type === 'hidden' ? null : ( {startCase(name)} )} - - {errors[name]} ) : null} - -
+ + ); })} diff --git a/client/src/components/formHelpers/__snapshots__/Form.test.js.snap b/client/src/components/formHelpers/__snapshots__/Form.test.js.snap index fa181bdbbd..e315158b47 100644 --- a/client/src/components/formHelpers/__snapshots__/Form.test.js.snap +++ b/client/src/components/formHelpers/__snapshots__/Form.test.js.snap @@ -11,10 +11,10 @@ exports[` snapshot 1`] = ` >
-
-
- + -
- {blockNameTitle} - -
-
-
- -
-
-
- -
-
- -
+ {blockNameTitle} + + + +
+ + +