Skip to content

Commit

Permalink
feat: add form-group class into FormGroup
Browse files Browse the repository at this point in the history
We still use form-group internally for a lot of tests, so this class is required
  • Loading branch information
davidacevedo committed Mar 11, 2022
1 parent a622264 commit 3ebc96c
Show file tree
Hide file tree
Showing 2 changed files with 90 additions and 1 deletion.
75 changes: 75 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

16 changes: 15 additions & 1 deletion src/components/FormGroup.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,17 @@
import { FormGroup } from 'reactstrap';
import React from 'react';
import { FormGroup as RSFormGroup } from 'reactstrap';
import classnames from 'classnames';

const FormGroup = (props: any) => {
let className = 'form-group';
if (props.className) {
// Need form-group for property tests compatibility
className = classnames(props.className, 'form-group');
}

return (
<RSFormGroup {...props} className={className} />
);
};

export default FormGroup;

0 comments on commit 3ebc96c

Please sign in to comment.