We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3bd514f commit 9eeab92Copy full SHA for 9eeab92
src/components/LazyLoadImage.jsx
@@ -95,11 +95,13 @@ class LazyLoadImage extends React.Component {
95
const { loaded } = this.state;
96
97
const loadedClassName = loaded ? ' lazy-load-image-loaded' : '';
98
- const wrapperBackground = loaded || !placeholderSrc ? {} :
99
- {
100
- backgroundImage: `url(${placeholderSrc})`,
101
- backgroundSize: '100% 100%'
102
- }
+ const wrapperBackground =
+ loaded || !placeholderSrc
+ ? {}
+ : {
+ backgroundImage: `url(${placeholderSrc})`,
103
+ backgroundSize: '100% 100%',
104
+ };
105
106
return (
107
<span
0 commit comments