aframevr / aframe-inspector

:mag: Visual inspector tool for A-Frame. Hit *<ctrl> + <alt> + i* on any A-Frame scene.
https://aframe.io/aframe-inspector/examples/
MIT License
647 stars 198 forks source link

Use icons from @fortawesome/react-fontawesome #692

Closed vincentfretin closed 4 months ago

vincentfretin commented 11 months ago

For GDPR reason to have one less external url to fetch resources from, and as a bonus reduce size of downloaded assets, replace usage of https://maxcdn.bootstrapcdn.com used for fontawesome icons https://github.com/aframevr/aframe-inspector/blob/72fd46159801ad37a14e87448611607b5d09a36e/src/components/Main.js#L14-L17

by @fortawesome/react-fontawesome npm package. That's it, instead of using class "fa fa-pause" on an element, you use

import { faPause } from "@fortawesome/free-solid-svg-icons";
import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";
<FontAwesomeIcon icon={faPause} />