Skip to content

Commit

Permalink
🐛 PropTypes.oneOfType expects an array as argument
Browse files Browse the repository at this point in the history
  • Loading branch information
Thibaut Remy committed Sep 13, 2017
1 parent 5fd342c commit 5812b67
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/fyndiq-component-button/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -69,10 +69,10 @@ Button.propTypes = {
disabled: PropTypes.bool,
pressed: PropTypes.bool,
htmlType: PropTypes.string,
link: PropTypes.oneOfType(
link: PropTypes.oneOfType([
PropTypes.string,
PropTypes.element,
),
]),
}

Button.defaultProps = {
Expand Down

0 comments on commit 5812b67

Please sign in to comment.