diff --git a/packages/vulcan-forms/lib/components/FormGroup.jsx b/packages/vulcan-forms/lib/components/FormGroup.jsx index ab6a9e297..abb5d7d14 100644 --- a/packages/vulcan-forms/lib/components/FormGroup.jsx +++ b/packages/vulcan-forms/lib/components/FormGroup.jsx @@ -4,50 +4,6 @@ import { Components } from 'meteor/vulcan:core'; import classNames from 'classnames'; import { registerComponent } from 'meteor/vulcan:core'; -const IconRight = ({ width = 24, height = 24 }) => ( - -); - -registerComponent('IconRight', IconRight); - -const IconDown = ({ width = 24, height = 24 }) => ( - -); - -registerComponent('IconDown', IconDown); - class FormGroup extends PureComponent { constructor(props) { super(props); @@ -112,3 +68,47 @@ FormGroup.propTypes = { }; registerComponent('FormGroup', FormGroup); + +const IconRight = ({ width = 24, height = 24 }) => ( + +); + +registerComponent('IconRight', IconRight); + +const IconDown = ({ width = 24, height = 24 }) => ( + +); + +registerComponent('IconDown', IconDown); diff --git a/packages/vulcan-forms/lib/components/FormNested.jsx b/packages/vulcan-forms/lib/components/FormNested.jsx index 341b5585c..c7d275576 100644 --- a/packages/vulcan-forms/lib/components/FormNested.jsx +++ b/packages/vulcan-forms/lib/components/FormNested.jsx @@ -3,10 +3,7 @@ import PropTypes from 'prop-types'; import { Components, registerComponent } from 'meteor/vulcan:core'; import Button from 'react-bootstrap/lib/Button'; -const FormNestedItem = ( - { nestedFields, name, path, removeItem, itemIndex, ...props }, - { errors } -) => { +const FormNestedItem = ({ nestedFields, name, path, removeItem, itemIndex, ...props }, { errors }) => { return (