11import React from 'react' ;
2- import { FormGroup as Pf4FormGroup , TextContent , Text , TextVariants } from '@patternfly/react-core' ;
2+ import { FormGroup , TextContent , Text } from '@patternfly/react-core' ;
33import PropTypes from 'prop-types' ;
44
5- const FormGroup = ( { label, isRequired, helperText, meta, description, hideLabel, children, id } ) => {
5+ const Pf4FormGroup = ( { label, isRequired, helperText, meta, description, hideLabel, children, id } ) => {
66 const { error, touched } = meta ;
77 const showError = touched && error ;
88 return (
9- < Pf4FormGroup
9+ < FormGroup
1010 isRequired = { isRequired }
1111 label = { ! hideLabel && label }
1212 fieldId = { id }
@@ -16,15 +16,15 @@ const FormGroup = ({ label, isRequired, helperText, meta, description, hideLabel
1616 >
1717 { description && (
1818 < TextContent >
19- < Text component = { TextVariants . small } > { description } </ Text >
19+ < Text component = " small" > { description } </ Text >
2020 </ TextContent >
2121 ) }
2222 { children }
23- </ Pf4FormGroup >
23+ </ FormGroup >
2424 ) ;
2525} ;
2626
27- FormGroup . propTypes = {
27+ Pf4FormGroup . propTypes = {
2828 label : PropTypes . string ,
2929 isRequired : PropTypes . bool ,
3030 helperText : PropTypes . string ,
@@ -35,9 +35,9 @@ FormGroup.propTypes = {
3535 children : PropTypes . oneOfType ( [ PropTypes . element , PropTypes . arrayOf ( PropTypes . element ) ] ) . isRequired
3636} ;
3737
38- FormGroup . defaultProps = {
38+ Pf4FormGroup . defaultProps = {
3939 isRequired : false ,
4040 description : undefined
4141} ;
4242
43- export default FormGroup ;
43+ export default Pf4FormGroup ;
0 commit comments