Skip to content

Commit

Permalink
Test
Browse files Browse the repository at this point in the history
  • Loading branch information
Aljullu committed May 26, 2023
1 parent 26ff473 commit 796078d
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions src/components/LazyLoadImage.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,6 @@ class LazyLoadImage extends React.Component {
}

return () => {
this.props.afterLoad();

this.setState({
loaded: true,
});
Expand Down Expand Up @@ -99,9 +97,9 @@ class LazyLoadImage extends React.Component {
loaded || !placeholderSrc
? {}
: {
backgroundImage: `url(${placeholderSrc})`,
backgroundSize: '100% 100%',
};
backgroundImage: `url(${placeholderSrc})`,
backgroundSize: '100% 100%',
};

return (
<span
Expand Down

0 comments on commit 796078d

Please sign in to comment.