Skip to content
This repository was archived by the owner on Jan 19, 2023. It is now read-only.

Commit 437c904

Browse files
committed
fix remaining lint errors and warnings
1 parent f5e68bd commit 437c904

File tree

2 files changed

+13
-13
lines changed

2 files changed

+13
-13
lines changed

src/react-image-lightbox.js

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1073,21 +1073,21 @@ class ReactImageLightbox extends Component {
10731073
</div>
10741074

10751075
{!prevSrc ? '' :
1076-
<button // Move to previous image button
1077-
type="button"
1078-
className={`prev-button ril-prev-button ${styles.navButtons} ${styles.navButtonPrev}`}
1079-
key="prev"
1080-
onClick={!this.isAnimating() ? this.requestMovePrev : noop} // Ignore clicks during animation
1081-
/>
1076+
<button // Move to previous image button
1077+
type="button"
1078+
className={`prev-button ril-prev-button ${styles.navButtons} ${styles.navButtonPrev}`}
1079+
key="prev"
1080+
onClick={!this.isAnimating() ? this.requestMovePrev : noop} // Ignore clicks during animation
1081+
/>
10821082
}
10831083

10841084
{!nextSrc ? '' :
1085-
<button // Move to next image button
1086-
type="button"
1087-
className={`next-button ril-next-button ${styles.navButtons} ${styles.navButtonNext}`}
1088-
key="next"
1089-
onClick={!this.isAnimating() ? this.requestMoveNext : noop} // Ignore clicks during animation
1090-
/>
1085+
<button // Move to next image button
1086+
type="button"
1087+
className={`next-button ril-next-button ${styles.navButtons} ${styles.navButtonNext}`}
1088+
key="next"
1089+
onClick={!this.isAnimating() ? this.requestMoveNext : noop} // Ignore clicks during animation
1090+
/>
10911091
}
10921092

10931093
<div // Lightbox toolbar

src/util.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ export function translate(str, replaceStrings = null) {
1818

1919
let translated = str;
2020
if (replaceStrings) {
21-
Object.keys(replaceStrings).forEach(placeholder => {
21+
Object.keys(replaceStrings).forEach((placeholder) => {
2222
translated = translated.replace(placeholder, replaceStrings[placeholder]);
2323
});
2424
}

0 commit comments

Comments
 (0)