react-version #1

Merged
memartel_loc merged 290 commits from react-version into main 2023-11-04 09:48:15 -04:00
Showing only changes of commit 5423d90953 - Show all commits

View File

@ -2,7 +2,7 @@ import { Card, Button, Form, Row, Col } from 'react-bootstrap';
import { useContext, useState, useEffect } from 'react';
import { CartContext } from './Cart';
const CartCard = ({ product }) => {
export function CartCard({ product }) {
const cart = useContext(CartContext);
const productQuantity = cart.getProductQuantity(product.id);