Skip to content

Change label proptypes to allow for anything that can be rendered#451

Open
dsantoro-ipkeys wants to merge 1 commit into
esnet:masterfrom
dsantoro-ipkeys:master
Open

Change label proptypes to allow for anything that can be rendered#451
dsantoro-ipkeys wants to merge 1 commit into
esnet:masterfrom
dsantoro-ipkeys:master

Conversation

@dsantoro-ipkeys
Copy link
Copy Markdown

In my projects, I pass a JSX element instead of a string and it renders but the console displays a proptype error. The label prop is a child of a div in the legend. Numbers, strings, elements are all valid items that can be rendered.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant