Skip to content

Commit

Permalink
tidy up
Browse files Browse the repository at this point in the history
  • Loading branch information
neptunian committed Jun 6, 2019
1 parent 77a1cb8 commit 3733240
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion docs/pages/CustomComponents/ImageViewer/index.js
Original file line number Diff line number Diff line change
@@ -49,7 +49,7 @@ export default class ImageViewer extends Component<Props, State> {
</p>
{!isLoading ? (
<FilmStrip>
{images.map(({ author, caption, source }, j) => (
{images.map(({ caption, source }, j) => (
<Image onClick={() => this.toggleModal(j)} key={source.regular}>
<img
alt={caption}
2 changes: 1 addition & 1 deletion docs/pages/Home/GalleryExample.js
Original file line number Diff line number Diff line change
@@ -31,7 +31,7 @@ export default class Home extends Component<ProviderProps, State> {
<Fragment>
{!isLoading ? (
<Gallery>
{images.map(({ author, caption, source }, j) => (
{images.map(({ caption, source }, j) => (
<Image
onClick={() => this.toggleLightbox(j)}
key={source.thumbnail}
2 changes: 1 addition & 1 deletion src/components/Modal/Modal.js
Original file line number Diff line number Diff line change
@@ -103,7 +103,7 @@ class Modal extends Component<Props, State> {
};
handleBackdropClick = (event: MouseEvent) => {
const { closeOnBackdropClick } = this.props;

if (!event.target.classList.contains(className('view')) || !closeOnBackdropClick) return;

this.handleClose(event);

0 comments on commit 3733240

Please sign in to comment.