Skip to content

Commit 480c442

Browse files
author
MattConflitti
committed
Added logic necessary to allow for a custom close button control to be passed like prev and next
1 parent e749999 commit 480c442

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

src/ImageView.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -567,6 +567,10 @@ export default class ImageView extends Component<PropsType, StateType> {
567567
controls.close = null;
568568
}
569569

570+
if (close) {
571+
controls.close = close === true ? Close : close;
572+
}
573+
570574
if (prev) {
571575
controls.prev = prev === true ? Prev : prev;
572576
}

0 commit comments

Comments
 (0)