Skip to content

Commit b22fe5a

Browse files
committed
Fixes per pr
1 parent 4d77d28 commit b22fe5a

5 files changed

Lines changed: 22 additions & 22 deletions

File tree

src/FormFeedback.jsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ const defaultProps = {
1111
tag: 'div',
1212
};
1313

14-
const Form = (props) => {
14+
const FormFeedback = (props) => {
1515
const {
1616
className,
1717
tag: Tag,
@@ -28,7 +28,7 @@ const Form = (props) => {
2828
);
2929
};
3030

31-
Form.propTypes = propTypes;
32-
Form.defaultProps = defaultProps;
31+
FormFeedback.propTypes = propTypes;
32+
FormFeedback.defaultProps = defaultProps;
3333

34-
export default Form;
34+
export default FormFeedback;

src/FormGroup.jsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ const defaultProps = {
1515
tag: 'div',
1616
};
1717

18-
const Form = (props) => {
18+
const FormGroup = (props) => {
1919
const {
2020
className,
2121
row,
@@ -39,7 +39,7 @@ const Form = (props) => {
3939
);
4040
};
4141

42-
Form.propTypes = propTypes;
43-
Form.defaultProps = defaultProps;
42+
FormGroup.propTypes = propTypes;
43+
FormGroup.defaultProps = defaultProps;
4444

45-
export default Form;
45+
export default FormGroup;

src/FormText.jsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ const defaultProps = {
1313
tag: 'small',
1414
};
1515

16-
const Form = (props) => {
16+
const FormText = (props) => {
1717
const {
1818
className,
1919
inline,
@@ -33,7 +33,7 @@ const Form = (props) => {
3333
);
3434
};
3535

36-
Form.propTypes = propTypes;
37-
Form.defaultProps = defaultProps;
36+
FormText.propTypes = propTypes;
37+
FormText.defaultProps = defaultProps;
3838

39-
export default Form;
39+
export default FormText;

src/Input.jsx

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ const defaultProps = {
1616
type: 'text',
1717
};
1818

19-
const Form = (props) => {
19+
const Input = (props) => {
2020
const {
2121
className,
2222
type,
@@ -52,7 +52,7 @@ const Form = (props) => {
5252
formControlClass
5353
);
5454

55-
if (!staticInput && !selectInput) {
55+
if (Tag === 'input') {
5656
attributes.type = type;
5757
}
5858

@@ -61,7 +61,7 @@ const Form = (props) => {
6161
);
6262
};
6363

64-
Form.propTypes = propTypes;
65-
Form.defaultProps = defaultProps;
64+
Input.propTypes = propTypes;
65+
Input.defaultProps = defaultProps;
6666

67-
export default Form;
67+
export default Input;

src/Label.jsx

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ const defaultProps = {
3636
tag: 'label',
3737
};
3838

39-
const Form = (props) => {
39+
const Label = (props) => {
4040
const {
4141
className,
4242
hidden,
@@ -76,11 +76,11 @@ const Form = (props) => {
7676
);
7777

7878
return (
79-
<Tag {...attributes} className={classes} htmlFor={htmlFor} />
79+
<Tag htmlFor={htmlFor} {...attributes} className={classes} />
8080
);
8181
};
8282

83-
Form.propTypes = propTypes;
84-
Form.defaultProps = defaultProps;
83+
Label.propTypes = propTypes;
84+
Label.defaultProps = defaultProps;
8585

86-
export default Form;
86+
export default Label;

0 commit comments

Comments
 (0)