When the user clicks on a certain product, they should be lead to a details modal that will give the individual details for that item and an option to add to cart.
AC
WHEN The user clicks on an individual beer item
THEN A modal will pop up with more details on that item
AND The user will see two options: An add item to cart and go to card, and an add item to cart but keep shopping button.
* Use this import statement in ```SingleBeer.js```: ```import ProductModal from '../ProductModal/ProductModal';```
* Add these functions in ```SingleBeer.js```
* At the bottom of the render() in ```SingleBeer.js```use the ProductModal:
* In the ProductModal use the product data props to fill out the card info.
* For now, set the buttons in the modal to just return an 'alert('Todo later')';
UserStory
AC
WHEN The user clicks on an individual beer item THEN A modal will pop up with more details on that item AND The user will see two options: An add item to cart and go to card, and an add item to cart but keep shopping button.
DevNotes
components/shared
called ProductModal.ProdectModal.js
andProductModal.scss
.ProductModal.js
start by these imports:export default ProductModal;
state = { modalOpen: false }
handleOpen = () => this.setState({ modalOpen: true })
handleClose = () => this.setState({ modalOpen: false })