You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A suggestion would be maybe create a new file that you import all your SVGs and then export them all, so then in your component you just import the icons like so
Usually all icons are stored in same folder. And it's a lot of code to specify each icon separately.
Rather than having tens of these lines:
Is it possible to do something like this?
So you just drop images in that folder and they are ready to use.
If that's not possible, maybe have array of image names and import them?
like:
If not, is there any way to simplify an avoid having all that import code for each image?
The text was updated successfully, but these errors were encountered: