This repository was archived by the owner on Jan 19, 2023. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +13
-13
lines changed Expand file tree Collapse file tree 2 files changed +13
-13
lines changed Original file line number Diff line number Diff 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
Original file line number Diff line number Diff 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 }
You can’t perform that action at this time.
0 commit comments