diff --git a/app/soapbox/components/ui/icon/svg-icon.tsx b/app/soapbox/components/ui/icon/svg-icon.tsx index e5cd6d03f..c651ac903 100644 --- a/app/soapbox/components/ui/icon/svg-icon.tsx +++ b/app/soapbox/components/ui/icon/svg-icon.tsx @@ -13,7 +13,7 @@ interface ISvgIcon { } /** Renders an inline SVG with an empty frame loading state */ -const SvgIcon: React.FC = ({ src, alt, size = 24, className }): JSX.Element => { +const SvgIcon: React.FC = ({ src, alt, size = 24, className, ...filteredProps }): JSX.Element => { const loader = ( = ({ src, alt, size = 24, className }): JSX.El height={size} loader={loader} data-testid='svg-icon' + {...filteredProps} > {/* If the fetch fails, fall back to displaying the loader */} {loader}