SvgIcon: loader fallback

This commit is contained in:
Alex Gleason
2022-04-10 13:25:10 -05:00
parent 734750a46a
commit c7b768b88d

View File

@ -29,7 +29,10 @@ const SvgIcon: React.FC<ISvgIcon> = ({ src, alt, size = 24, className }): JSX.El
height={size}
loader={loader}
data-testid='svg-icon'
/>
>
/* If the fetch fails, fall back to displaying the loader */
{loader}
</InlineSVG>
);
};