Skip to content

Commit

Permalink
Merge pull request #121 from JimishF/master
Browse files Browse the repository at this point in the history
Added extra Prop for Gallery, to assign any prop directly to lightbox.
  • Loading branch information
benhowell authored May 26, 2019
2 parents 22bf730 + d2b36ba commit 3012135
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/Gallery.js
Original file line number Diff line number Diff line change
Expand Up @@ -305,6 +305,7 @@ class Gallery extends Component {
theme={this.props.theme}
onClickThumbnail={this.getOnClickLightboxThumbnailFn()}
showThumbnails={this.props.showLightboxThumbnails}
{...this.props.lightBoxProps}
/>
</div>
);
Expand Down Expand Up @@ -367,7 +368,8 @@ Gallery.propTypes = {
showLightboxThumbnails: PropTypes.bool,
onClickLightboxThumbnail: PropTypes.func,
tagStyle: PropTypes.object,
thumbnailImageComponent: PropTypes.func
thumbnailImageComponent: PropTypes.func,
lightBoxProps : PropTypes.object,
};

Gallery.defaultProps = {
Expand All @@ -386,6 +388,7 @@ Gallery.defaultProps = {
showImageCount: true,
lightboxWidth: 1024,
showLightboxThumbnails: false,
lightBoxProps : {},
};

module.exports = Gallery;

0 comments on commit 3012135

Please sign in to comment.