Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

iconType: Invalid prop warning in when a function is used as prop to render custom icon #3175

Closed
phyolim opened this issue Mar 26, 2020 · 0 comments · Fixed by #3252
Closed

Comments

@phyolim
Copy link
Contributor

phyolim commented Mar 26, 2020

When using a ReactElement as prop for iconType in EuiEmptyPrompt or EuiHeaderLogo, it throws this error.
Screen Shot 2020-03-26 at 10 58 00 AM

If a function returning a ReactElement is passed to iconType prop, it renders successfully on the UI but, now, it shows this warning in console.
Screen Shot 2020-03-26 at 10 57 03 AM

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 a pull request may close this issue.

1 participant