Check if icon exists
Closed this issue · 2 comments
VictorPietro commented
Hi! Thanks for this. I am building this website in which an user can select an icon and send it to backend, where it will be saved.
For validation purposes, I am trying to check (on the backend) if the icon name is valid - i.e., if it's one of the icons available within the react-fa-icon-picker.
Has anyone done anything similar to this?
Deleted user commented
It's a bit of a manual process, but the available icons are listed in https://github.com/DATechnologies/react-fa-icon-picker/blob/master/src/iconList.ts, so a copy of that on the backend serving as a lookup would achieve what you want I think?
VictorPietro commented
Hi @Chuckatron, fantastic, thank you!! That will definitely work out for what I need.