diff --git a/desktop/app/src/utils/__tests__/icons.node.tsx b/desktop/app/src/utils/__tests__/icons.node.tsx index 24aa3be05..7e60a42b7 100644 --- a/desktop/app/src/utils/__tests__/icons.node.tsx +++ b/desktop/app/src/utils/__tests__/icons.node.tsx @@ -43,7 +43,7 @@ test('filled icons get correct URL', async () => { } as const; const iconUrl = getPublicIconUrl(icon); expect(iconUrl).toBe( - 'https://facebook.com/assets/?name=star&variant=filled&size=12&set=facebook_icons&density=2x', + 'https://facebook.com/images/assets_DO_NOT_HARDCODE/facebook_icons/star_filled_12.png', // TODO: support density? ); const staticPath = getRenderHostInstance().serverConfig.paths.staticPath; const localUrl = getLocalIconUrl(icon, iconUrl, staticPath, false); diff --git a/desktop/flipper-ui-core/src/chrome/plugin-manager/__tests__/__snapshots__/PluginInstaller.node.tsx.snap b/desktop/flipper-ui-core/src/chrome/plugin-manager/__tests__/__snapshots__/PluginInstaller.node.tsx.snap index 890169d2f..0cfd86a3a 100644 --- a/desktop/flipper-ui-core/src/chrome/plugin-manager/__tests__/__snapshots__/PluginInstaller.node.tsx.snap +++ b/desktop/flipper-ui-core/src/chrome/plugin-manager/__tests__/__snapshots__/PluginInstaller.node.tsx.snap @@ -183,10 +183,10 @@ exports[`load PluginInstaller list 1`] = ` href="https://yarnpkg.com/en/package/flipper-plugin-hello" >
@@ -255,10 +255,10 @@ exports[`load PluginInstaller list 1`] = ` href="https://yarnpkg.com/en/package/flipper-plugin-world" >
@@ -569,10 +569,10 @@ exports[`load PluginInstaller list with one plugin installed 1`] = ` href="https://yarnpkg.com/en/package/flipper-plugin-hello" >
@@ -641,10 +641,10 @@ exports[`load PluginInstaller list with one plugin installed 1`] = ` href="https://yarnpkg.com/en/package/flipper-plugin-world" >
diff --git a/desktop/flipper-ui-core/src/utils/icons.tsx b/desktop/flipper-ui-core/src/utils/icons.tsx index 87cbba116..b79333e6e 100644 --- a/desktop/flipper-ui-core/src/utils/icons.tsx +++ b/desktop/flipper-ui-core/src/utils/icons.tsx @@ -59,7 +59,7 @@ function normalizeIcon(icon: Icon): Icon { } export function getPublicIconUrl({name, variant, size, density}: Icon) { - return `https://facebook.com/assets/?name=${name}&variant=${variant}&size=${size}&set=facebook_icons&density=${density}x`; + return `https://facebook.com/images/assets_DO_NOT_HARDCODE/facebook_icons/${name}_${variant}_${size}.png`; } export function getIconURL(icon: Icon) {