Added a comment

This commit is contained in:
Luis Alvarez
2020-10-05 01:22:00 -05:00
parent f5fa29a78a
commit 3850e33de7
2 changed files with 3 additions and 78 deletions

View File

@@ -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,