Skip to content

Commit

Permalink
fix: remove required for labelYOffset in DotsItem
Browse files Browse the repository at this point in the history
Currently this is causing error when `labelYOffset` is not provided. But since `labelYOffset` has a default value of `-12`, we should remove `required`.
  • Loading branch information
ycmjason authored and plouc committed Feb 18, 2022
1 parent 2763c4a commit d4daf2c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/core/src/components/dots/DotsItem.js
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ DotsItem.propTypes = {

label: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
labelTextAnchor: PropTypes.oneOf(['start', 'middle', 'end']),
labelYOffset: PropTypes.number.isRequired,
labelYOffset: PropTypes.number,
}

export default memo(DotsItem)

0 comments on commit d4daf2c

Please sign in to comment.