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

Card icon property does not take type null #3459

Closed
sarahetter opened this issue May 11, 2020 · 1 comment · Fixed by #3470
Closed

Card icon property does not take type null #3459

sarahetter opened this issue May 11, 2020 · 1 comment · Fixed by #3470

Comments

@sarahetter
Copy link

The acceptable types for EuiCard are either a React Component or undefined. We're using a function to get the Icon component. Sometimes we (in Cloud) do not want to display an icon, which is typically done by returning null.

Can null be added as an accepted type?

@chandlerprall
Copy link
Contributor

Agreed! Let's widen that type to support nulls

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

Successfully merging a pull request may close this issue.

2 participants