From 796078db710119ed6c74773b2b15643e26022d49 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Albert=20Juh=C3=A9=20Lluveras?= Date: Fri, 26 May 2023 19:29:42 +0200 Subject: [PATCH] Test --- src/components/LazyLoadImage.jsx | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/src/components/LazyLoadImage.jsx b/src/components/LazyLoadImage.jsx index f8fb9bb..2a4d4e1 100644 --- a/src/components/LazyLoadImage.jsx +++ b/src/components/LazyLoadImage.jsx @@ -18,8 +18,6 @@ class LazyLoadImage extends React.Component { } return () => { - this.props.afterLoad(); - this.setState({ loaded: true, }); @@ -99,9 +97,9 @@ class LazyLoadImage extends React.Component { loaded || !placeholderSrc ? {} : { - backgroundImage: `url(${placeholderSrc})`, - backgroundSize: '100% 100%', - }; + backgroundImage: `url(${placeholderSrc})`, + backgroundSize: '100% 100%', + }; return (