ConsenSysMesh / rimble-ui

React components that implement Rimble's Design System.
https://rimble.consensys.design/
MIT License
463 stars 67 forks source link

Refactor global icon import out of library #436

Open MikeLockz opened 4 years ago

MikeLockz commented 4 years ago

There should not be a dependence on importing all icons into rimble-ui. The current Icon component imports import * as RimbleIcons from @rimble/icons all icons or import Icon from "../Icon" . This creates a large library bundle size that does not tree-shake properly.

Components that utilize a global import that will need refactoring:

Refactor components to only import single icons as needed: