Skip to content

Commit

Permalink
fix(Image): relax wrapped propType (#2043)
Browse files Browse the repository at this point in the history
  • Loading branch information
layershifter authored and Alexander Fedyashov committed Sep 11, 2017
1 parent 64a4f31 commit 8c0faf2
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions src/elements/Image/Image.js
Original file line number Diff line number Diff line change
Expand Up @@ -108,12 +108,8 @@ class Image extends Component {
]),

/** An image can render wrapped in a `div.ui.image` as alternative HTML markup. */
wrapped: customPropTypes.every([
PropTypes.bool,
// these props wrap the image in an a tag already
customPropTypes.disallow(['href']),
]),
}
wrapped: PropTypes.bool,
}

static defaultProps = {
as: 'img',
Expand Down

0 comments on commit 8c0faf2

Please sign in to comment.