Skip to content

Commit

Permalink
add semi-colons
Browse files Browse the repository at this point in the history
  • Loading branch information
hunxjunedo committed Feb 21, 2024
1 parent 80744fe commit c44289f
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/components/ImageGallery.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -765,14 +765,14 @@ class ImageGallery extends React.Component {
//SOLVED BY hunxjunedo : https://github.com/xiaolin/react-image-gallery/issues/767
//removed some minor errors, rmeove semi-colon
canSlideLeft() {
const { infinite, isRTL } = this.props
const { infinite, isRTL } = this.props;
//so basically is the list is right to left, the canSlideLeft depends on canSlideNext instead of canSlideRight
return infinite || (isRTL ? this.canSlideNext() : this.canSlidePrevious())
return infinite || (isRTL ? this.canSlideNext() : this.canSlidePrevious());
}

canSlideRight() {
const { infinite, isRTL } = this.props
return infinite || (isRTL ? this.canSlidePrevious() : this.canSlideNext() )
const { infinite, isRTL } = this.props;
return infinite || isRTL ? this.canSlidePrevious() : this.canSlideNext();
}

canSlidePrevious() {
Expand Down

0 comments on commit c44289f

Please sign in to comment.