diff --git a/src/components/ValidatedFormGroup.js b/src/components/ValidatedFormGroup.js index d7a4bc658..115b9e293 100644 --- a/src/components/ValidatedFormGroup.js +++ b/src/components/ValidatedFormGroup.js @@ -1,16 +1,22 @@ import PropTypes from 'prop-types'; import React from 'react'; -import FormFeedback from './FormFeedback'; -import FormGroup from './FormGroup'; +import { warnOnce } from 'reactstrap/lib/utils'; +import FormLabelGroup from './FormLabelGroup'; import Label from './Label'; -const ValidatedFormGroup = ({ children, error, label, labelTag: Tag, ...props }) => ( - - {label && {label}} - {children} - {error && {error}} - -); +const ValidatedFormGroup = ({ children, error, label, labelTag: Tag, ...props }) => { + warnOnce('The "ValidatedFormGroup" component has been deprecated.\nPlease use component "FormLabelGroup".'); + return ( + + {children} + + ); +}; + export default ValidatedFormGroup; ValidatedFormGroup.defaultProps = {