fontIconPicker / react-fonticonpicker

React FontIconPicker Component to pick icon or SVG from a selection.
https://fonticonpicker.github.io/react-fonticonpicker/
MIT License
31 stars 32 forks source link

Use FontIconPicker with FontAwesome 4.7 #3

Closed davidgolden closed 6 years ago

davidgolden commented 6 years ago

Hey @swashata, thanks for this sweet icon picker! I'm needing to use the older version of FontAwesome and it doesn't seem to be working with FontIconPicker. All I've done so far is change the CDN to the legacy version. What configurations would you change on FIP so that 4.7 will work?

swashata commented 6 years ago

Hi, thanks for your good words. About FontAwesome 4, you just need to change the icons prop.

<FontIconPicker icons={['fa fa-address-book', 'fa fa-bar-chart']} />

I hope I am clear.

davidgolden commented 6 years ago

Ah, stupid mistake- had my head in some other code that needed to omit the 'fa' part. Sorry and thank you!