Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 9eeab92

Browse files
committed
Apply linting fixes to LazyLoadImage.jsx
1 parent 3bd514f commit 9eeab92

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

‎src/components/LazyLoadImage.jsx‎

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -95,11 +95,13 @@ class LazyLoadImage extends React.Component {
9595
const { loaded } = this.state;
9696

9797
const loadedClassName = loaded ? ' lazy-load-image-loaded' : '';
98-
const wrapperBackground = loaded || !placeholderSrc ? {} :
99-
{
100-
backgroundImage: `url(${placeholderSrc})`,
101-
backgroundSize: '100% 100%'
102-
}
98+
const wrapperBackground =
99+
loaded || !placeholderSrc
100+
? {}
101+
: {
102+
backgroundImage: `url(${placeholderSrc})`,
103+
backgroundSize: '100% 100%',
104+
};
103105

104106
return (
105107
<span

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /