status-im / status-mobile

a free (libre) open source, mobile OS for Ethereum
https://status.app
Mozilla Public License 2.0
3.88k stars 984 forks source link

Refactor common pieces in Asset loaders (icons/socials/tokens etc) #18358

Open J-Son89 opened 8 months ago

J-Son89 commented 8 months ago

There are many asset loaders used in the codebase. These are mostly for files related to: https://www.figma.com/file/qLLuMLfpGxK9OfpIavwsmK/Iconset?node-id=3239%3A5849&mode=dev

Using an asset loader is much easier for these types of resources as it allows us to export in bulk and receive the updates for free provided design team uses the same names as before.

Each category here has some different categorization used internally, e.g size or color etc.

Currently in the codebase there is three asset loaders which all use very similar macros. src/quo/components/icons/icons.clj src/quo/components/utilities/social/loader.clj src/quo/components/utilities/token/loader.clj

Acceptance Criteria:

J-Son89 commented 8 months ago

cc @ulisesmac