fix prod icons

Summary:
Previously we had requested non existing icons. This fixes missing icons on pixel dense screens (macbook pro, 4k screens).

I could add x4, x5 icons as well. Though they are no better than x3. Even x3 is pretty raterized. Ideally we should be serving icons with higher resolution and scaling them down instead of doing this. Even better use SVG icons which we do not have.

Reviewed By: LukeDefeo

Differential Revision: D50454271

fbshipit-source-id: cda90972abb56069e160ddefdc6de460c49d06c0
This commit is contained in:
Anton Kastritskiy
2023-10-19 07:25:40 -07:00
committed by Facebook GitHub Bot
parent ee7f12ef85
commit 64d97998fd
2 changed files with 2 additions and 1 deletions

View File

@@ -44,6 +44,7 @@ export async function downloadIcons(buildFolder: string) {
// get icons in @1x and @2x
...sizes.map((size) => ({name, variant, size, density: 1})),
...sizes.map((size) => ({name, variant, size, density: 2})),
...sizes.map((size) => ({name, variant, size, density: 3})),
);
return acc;
},