File tree Expand file tree Collapse file tree 1 file changed +17
-3
lines changed Expand file tree Collapse file tree 1 file changed +17
-3
lines changed Original file line number Diff line number Diff line change @@ -63,9 +63,20 @@ const ButtonTwoLines = ({
63
63
)
64
64
65
65
if ( props . componentType === "link" ) {
66
+ const { buttonProps, ...rest } = props
66
67
return (
67
- < ButtonLink className = { commonClassStyles } size = { size } { ...props } >
68
- < ChildContent { ...props } size = { size } isIconLeft = { isIconLeft } />
68
+ < ButtonLink
69
+ className = { commonClassStyles }
70
+ size = { size }
71
+ buttonProps = { buttonProps }
72
+ { ...rest }
73
+ >
74
+ < ChildContent
75
+ { ...rest }
76
+ size = { size }
77
+ isSecondary = { buttonProps ?. isSecondary }
78
+ isIconLeft = { isIconLeft }
79
+ />
69
80
</ ButtonLink >
70
81
)
71
82
}
@@ -79,7 +90,10 @@ const ButtonTwoLines = ({
79
90
export default ButtonTwoLines
80
91
81
92
const ChildContent = (
82
- props : Omit < ButtonTwoLinesProps , "iconAlignment" > & { isIconLeft : boolean }
93
+ props : Omit < ButtonTwoLinesProps , "iconAlignment" | "buttonProps" > & {
94
+ isIconLeft : boolean
95
+ isSecondary ?: boolean
96
+ }
83
97
) => {
84
98
const {
85
99
reverseTextOrder = false ,
You can’t perform that action at this time.
0 commit comments