1
0
Fork 0
mirror of https://github.com/muerwre/vault-frontend.git synced 2025-04-24 20:36:40 +07:00

fix svg loading

This commit is contained in:
Fedor Katurov 2023-11-13 21:56:19 +06:00
parent 8b6b338a47
commit 5fe6d8b869

View file

@ -21,7 +21,14 @@ const NodeImageLazy: FC<NodeImageLazyProps> = ({
}) => { }) => {
if (src?.endsWith('svg')) { if (src?.endsWith('svg')) {
return ( return (
<img data-src={src} onLoad={onLoad} color={color} alt="" {...rest} /> <img
src={src}
onLoad={onLoad}
color={color}
alt=""
{...rest}
loading="lazy"
/>
); );
} }