mirror of
https://github.com/vercel/commerce.git
synced 2025-07-22 20:26:49 +00:00
Added a comment
This commit is contained in:
@@ -28,6 +28,7 @@ const COLORS: Colors[] = ['pink', 'black', 'white']
|
||||
const ProductView: FC<Props> = ({ product, productData, className }) => {
|
||||
const addItem = useAddItem()
|
||||
const addToCart = () => {
|
||||
// TODO: loading state by awating the promise
|
||||
addItem({
|
||||
item: {
|
||||
productId: product.entityId,
|
||||
|
Reference in New Issue
Block a user