Merge version_1 into main #4
@@ -25,7 +25,6 @@ export default function ProductPage({ params }: ProductPageProps) {
|
||||
isLoading,
|
||||
images,
|
||||
variants,
|
||||
quantityVariant,
|
||||
selectedQuantity,
|
||||
createCartItem,
|
||||
} = useProductDetail(id);
|
||||
@@ -41,7 +40,7 @@ export default function ProductPage({ params }: ProductPageProps) {
|
||||
getCheckoutItems,
|
||||
} = useCart();
|
||||
|
||||
const { buyNow, checkout, isLoading: isCheckoutLoading } = useCheckout();
|
||||
const { buyNow, checkout } = useCheckout();
|
||||
|
||||
const handleAddToCart = useCallback(() => {
|
||||
const item = createCartItem();
|
||||
@@ -149,7 +148,6 @@ export default function ProductPage({ params }: ProductPageProps) {
|
||||
<ProductDetailCard
|
||||
images={images}
|
||||
variants={variants}
|
||||
quantityVariant={quantityVariant}
|
||||
selectedQuantity={selectedQuantity}
|
||||
onAddToCart={handleAddToCart}
|
||||
onBuyNow={handleBuyNow}
|
||||
@@ -162,7 +160,6 @@ export default function ProductPage({ params }: ProductPageProps) {
|
||||
items={cartItems}
|
||||
onRemove={removeItem}
|
||||
total={cartTotal}
|
||||
isCheckoutLoading={isCheckoutLoading}
|
||||
/>
|
||||
<div id="footer" data-section="footer">
|
||||
<FooterMedia
|
||||
|
||||
Reference in New Issue
Block a user