Skip to content
This repository was archived by the owner on Mar 1, 2024. It is now read-only.

Commit 89e1e9e

Browse files
committed
fix(FormInputGroupAppendPrepend): remove uneccasary span
1 parent 519d28d commit 89e1e9e

File tree

2 files changed

+2
-10
lines changed

2 files changed

+2
-10
lines changed

src/components/Form/FormInputGroupAppend.react.js

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,7 @@ type Props = {|
1010

1111
function FormInputGroupAppend({ className, children }: Props): React.Node {
1212
const classes = cn("input-group-append", className);
13-
return (
14-
<span className={classes}>
15-
<span className="input-group-text">{children}</span>
16-
</span>
17-
);
13+
return <span className={classes}>{children}</span>;
1814
}
1915

2016
FormInputGroupAppend.displayName = "Form.InputGroupAppend";

src/components/Form/FormInputGroupPrepend.react.js

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,7 @@ type Props = {|
1010

1111
function FormInputGroupPrepend({ className, children }: Props): React.Node {
1212
const classes = cn("input-group-prepend", className);
13-
return (
14-
<span RootComponent="span" className={classes}>
15-
<span className="input-group-text">{children}</span>
16-
</span>
17-
);
13+
return <span className={classes}>{children}</span>;
1814
}
1915

2016
FormInputGroupPrepend.displayName = "Form.InputGroupPrepend";

0 commit comments

Comments
 (0)