mirror of
https://github.com/trezor/trezor-suite.git
synced 2026-03-05 15:05:23 +01:00
- Currently, it was possible to generate coin images from Coingecko only in single size (24x24) in two image qualities (1x, 2x).
- Now it's possible to easily add additionally sizes to the `COIN_IMAGE_SIZES` or qualities to `COIN_IMAGE_QUALITIES`.
- This required to change the generated image name. I made sure to update all existing occurances, mainly the `getAssetLogoUrl` util to stay backwards compatible.
Coin image name:
```
type OldCoinImageName = `${string}--{'' | '2x'}.webp`
type NewCoinImageName = `${string}--${24 | 40}{'' | '2x'}.webp`
```
8 lines
167 B
JSON
8 lines
167 B
JSON
{
|
|
"extends": "../../tsconfig.base.json",
|
|
"compilerOptions": { "outDir": "libDev" },
|
|
"references": [
|
|
{ "path": "../../suite-common/icons" }
|
|
]
|
|
}
|