navigate('/cart')}>
{user && `${user}의 `}장바구니
- {totalCart}
+ ..}>
+
+
);
}
@@ -22,6 +25,7 @@ const CartQuantityContainer = styled.div`
display: flex;
justify-content: center;
align-items: center;
+ cursor: pointer;
${({ theme }) => theme.fonts.h2}
color : ${({ theme }) => theme.colors.white}
diff --git a/src/components/ProductListPage/ProductItem.tsx b/src/components/ProductListPage/ProductItem.tsx
index 45ce320f12..85c7d85272 100644
--- a/src/components/ProductListPage/ProductItem.tsx
+++ b/src/components/ProductListPage/ProductItem.tsx
@@ -17,7 +17,7 @@ export default function ProductItem({
name,
price,
}: ProductItemProps) {
- const { isSelected, selectProductItem, addCartProductItem, quantityRef } =
+ const { isSelected, selectProductItem, addCartProductItem, count, setCount } =
useAddCart();
return (
@@ -29,7 +29,7 @@ export default function ProductItem({