Precache ratings icons

Summary:
Supersedes D16580111.

Makes sure that rating icons are prefetched.

Reviewed By: bnelo12

Differential Revision: D16582032

fbshipit-source-id: d07db936f284d7aedb0f8dbfdae7738b305eb848
This commit is contained in:
Pascal Hartig
2019-07-31 10:22:07 -07:00
committed by Facebook Github Bot
parent 7a55fbc8dd
commit 84b64b75dc

View File

@@ -75,7 +75,19 @@ export const precachedIcons: Array<string> = [
name: 'chevron-down',
size: 8,
},
].map(icon => getIconUrl(icon.name, icon.size || undefined));
{
name: 'star',
size: 16,
variant: 'filled',
},
{
name: 'star',
size: 16,
variant: 'outline',
},
].map(icon =>
getIconUrl(icon.name, icon.size || undefined, icon.variant || undefined),
);
export function getIconUrl(
name: string,