Skip to content

Commit

Permalink
fix: PropTypes.oneOf takes an array, not individual arguments
Browse files Browse the repository at this point in the history
  • Loading branch information
ptbrowne committed Sep 9, 2020
1 parent f8e7e08 commit e1af414
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions react/Badge/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -114,12 +114,12 @@ const Badge = withStyles(customStyles)(

Badge.propTypes = {
anchorOrigin: PropTypes.shape({
horizontal: PropTypes.oneOf('left', 'right'),
vertical: PropTypes.oneOf('bottom', 'top')
horizontal: PropTypes.oneOf(['left', 'right']),
vertical: PropTypes.oneOf(['bottom', 'top'])
}),
size: PropTypes.oneOf('small', 'medium', 'large'),
size: PropTypes.oneOf(['small', 'medium', 'large']),
showZero: PropTypes.bool,
variant: PropTypes.oneOf('standard', 'dot')
variant: PropTypes.oneOf(['standard', 'dot'])
}

Badge.defaultProps = {
Expand Down

0 comments on commit e1af414

Please sign in to comment.