Closed its-monotype closed 6 months ago
Definitely not intended. I was checking for the object type in the Icon component but that definitely doesn't work in old libraries where propTypes are used. I've updated the type checking and tested in the codesandbox, so it should work in 2.7.4 now
When I try to pass it like that:
I got this error:
But if I create my icon like that:
it works fine like this:
also for some reason typeof external icon: is 'object' and my icon is 'function'
To make an icon from external lib work I should pass it like this:
Is this the intended behavior?