Skip to content

Commit

Permalink
fix(line): fix LineSlices id prop type
Browse files Browse the repository at this point in the history
  • Loading branch information
Raphaël Benitte authored and Raphaël Benitte committed Jun 4, 2018
1 parent afd1ee3 commit 6f229b9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/nivo-line/src/LineSlices.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ const LineSlices = ({ slices, height, showTooltip, hideTooltip, theme, tooltipFo
LineSlices.propTypes = {
slices: PropTypes.arrayOf(
PropTypes.shape({
id: PropTypes.string.isRequired,
id: PropTypes.oneOfType([PropTypes.number, PropTypes.string]).isRequired,
x: PropTypes.number.isRequired,
points: PropTypes.arrayOf(
PropTypes.shape({
Expand Down

0 comments on commit 6f229b9

Please sign in to comment.