Skip to content

Commit 81b2a45

Browse files
fix(tailwind/ButtonTwoLines): fix size prop declaration to child content
1 parent cb8ec97 commit 81b2a45

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tailwind/ui/buttons/ButtonTwoLines.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -65,13 +65,13 @@ const ButtonTwoLines = ({
6565
if (props.componentType === "link") {
6666
return (
6767
<ButtonLink className={commonClassStyles} size={size} {...props}>
68-
<ChildContent {...props} isIconLeft={isIconLeft} />
68+
<ChildContent {...props} size={size} isIconLeft={isIconLeft} />
6969
</ButtonLink>
7070
)
7171
}
7272
return (
7373
<Button className={commonClassStyles} size={size} {...props}>
74-
<ChildContent {...props} isIconLeft={isIconLeft} />
74+
<ChildContent {...props} size={size} isIconLeft={isIconLeft} />
7575
</Button>
7676
)
7777
}
@@ -83,7 +83,7 @@ const ChildContent = (
8383
) => {
8484
const {
8585
reverseTextOrder = false,
86-
size = "md",
86+
size,
8787
mainText,
8888
helperText,
8989
icon: Icon,

0 commit comments

Comments
 (0)