SvgIcon: loader fallback
This commit is contained in:
parent
734750a46a
commit
c7b768b88d
1 changed files with 4 additions and 1 deletions
|
@ -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>
|
||||
);
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in a new issue