framework7io / framework7-icons

Free iOS-icons font for Framework7
http://framework7.io/icons/
MIT License
208 stars 125 forks source link

F7-icons React: Some icons using string style causing exception #48

Closed christopherafbjur closed 1 year ago

christopherafbjur commented 1 year ago

Already reported this here and it was fixed for the specific case described below, how ever this is still an issue in version 5.0.5, for other icons. I do not know exactly for which icon this happens, but the usecase is that I'm trying to render out all of the icons and I see this error for some of them. Until it's fixed for all of them, I cannot use this library for my usecase.

Some react icons seem to be missing style mapping causing this error:

Error

The `style` prop expects a mapping from style properties to values, not a string. For example, style={{marginRight: spacing + 'em'}} when using JSX.

Here's a demo of the issue. Airplane renders correctly, but PersonAltCircle does not.

christopherafbjur commented 1 year ago

I must have made a mistake investigating this. I'm unable to reproduce this error now and I can see that there are no remaining style attributes present for any other SVG paths. Closing.