import React from 'react'; import PropTypes from 'prop-types'; import { withStyles } from '@material-ui/core/styles'; import 'ba-styles/vendors/image-lightbox/image-lightbox.css'; import { Typography, ButtonBase } from '@material-ui/core'; import ImageLightbox from '../ImageLightbox/ImageLightbox'; import styles from './photo-jss'; class PhotoGallery extends React.Component { constructor(props) { super(props); this.state = { photoIndex: 0, isOpen: false, }; } openPopup = (photoIndex) => { this.setState({ isOpen: true, photoIndex }); } render() { const { photoIndex, isOpen } = this.state; const { classes, imgData } = this.props; return (