Skip to content

Commit

Permalink
Fix props not being passed correctly to Buttons
Browse files Browse the repository at this point in the history
  • Loading branch information
DeveloperBlue committed Dec 24, 2023
1 parent 43ccbd8 commit d415a19
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions app/components/Button/Button.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,12 @@ const ButtonBase = ({style = {}, children, type, variant, className, contentCont
}


const Button = ({style = {}, label, className, children, variant, props}) => {
const Button = ({style = {}, label, className, children, variant, ...props}) => {

if (label == "Subscribe") {
console.log("PROPS", props);
}

return (
<ButtonBase
style={style}
Expand All @@ -131,7 +136,7 @@ const Button = ({style = {}, label, className, children, variant, props}) => {
)
}

const ButtonLink = ({style = {}, label, href = '/', target = '', className, children, variant, props}) => {
const ButtonLink = ({style = {}, label, href = '/', target = '', className, children, variant, ...props}) => {
return (
<ButtonBase
style={style}
Expand Down

0 comments on commit d415a19

Please sign in to comment.