diff --git a/src/components/ImageGallery/ImageGallery.jsx b/src/components/ImageGallery/ImageGallery.jsx index c02687f..8f87d91 100644 --- a/src/components/ImageGallery/ImageGallery.jsx +++ b/src/components/ImageGallery/ImageGallery.jsx @@ -15,8 +15,7 @@ export default class ImageGallery extends Component { isLoading: false, showLoadMore: false, currentPage: 1, - showModal: false, - }; + }; optimaizerImageList = images => { return images.map(({ id, tags, largeImageURL, webformatURL }) => ({ @@ -80,11 +79,7 @@ export default class ImageGallery extends Component { this.setState(prevState => ({ currentPage: prevState.currentPage + 1 })); }; - toggleModal = () => { - this.setState(({ showModal }) => ({ - showModal: !showModal, - })); - }; + render() { const { capture, error, isLoading, showLoadMore, images } = this.state; @@ -94,7 +89,7 @@ export default class ImageGallery extends Component { {capture !== null && ( - + )}