Skip to content

Commit

Permalink
fix(legends): update proptypes to avoid generated type error
Browse files Browse the repository at this point in the history
  • Loading branch information
wyze authored and plouc committed Jun 4, 2021
1 parent c9156aa commit f0acb81
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions packages/legends/src/props.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,7 @@ import PropTypes from 'prop-types'
* ```
*/
export const LegendPropShape = {
data: PropTypes.arrayOf(
PropTypes.shape({
id: PropTypes.oneOfType([PropTypes.string, PropTypes.number]).isRequired,
label: PropTypes.oneOfType([PropTypes.string, PropTypes.number]).isRequired,
color: PropTypes.string,
fill: PropTypes.string,
})
),
data: PropTypes.arrayOf(PropTypes.object),

// position & layout
anchor: PropTypes.oneOf([
Expand Down

0 comments on commit f0acb81

Please sign in to comment.