Skip to content

Refactor global icon import out of library #436

@MikeLockz

Description

@MikeLockz

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:

  • Icon
  • ToastMessage
  • Button

Refactor components to only import single icons as needed:

  • EthAddress
  • FileInput

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions