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:
committed by
Facebook Github Bot
parent
7a55fbc8dd
commit
84b64b75dc
@@ -75,7 +75,19 @@ export const precachedIcons: Array<string> = [
|
|||||||
name: 'chevron-down',
|
name: 'chevron-down',
|
||||||
size: 8,
|
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(
|
export function getIconUrl(
|
||||||
name: string,
|
name: string,
|
||||||
|
|||||||
Reference in New Issue
Block a user