Skip to content

Commit

Permalink
fix button not receiving props
Browse files Browse the repository at this point in the history
  • Loading branch information
illiteratewriter authored and phwebi committed Oct 27, 2021
1 parent 0c9294c commit aa29b39
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions src/PlaceholderButton.js
Expand Up @@ -14,17 +14,13 @@ const propTypes = {
}

const defaultProps = {
color: 'secondary',
color: 'primary',
tag: Button
}

const PlaceholderButton = (props) => {
let {
size,
color,
outline,
cssModule,
className,
tag: Tag,
...attributes
} = props;
Expand All @@ -38,7 +34,7 @@ const PlaceholderButton = (props) => {
), cssModule);

return (
<Button {...modifiedAttributes} color="primary" className={classes} disabled={true}></Button>
<Button {...modifiedAttributes} className={classes} disabled={true}></Button>
)
}

Expand Down

0 comments on commit aa29b39

Please sign in to comment.