Update src/app/shop/[id]/page.tsx

This commit is contained in:
2026-02-13 22:01:51 +00:00
parent 0f3ede976a
commit 4524d6c2d1

View File

@@ -241,7 +241,14 @@ export default function ProductPage({ params }: ProductPageProps) {
<div id="productDetail" data-section="productDetail">
<ProductDetailCard
layout="default"
name={product.name}
price={product.priceDisplay}
images={images}
buttons={[
{ text: "Add to Cart", onClick: handleAddToCart },
{ text: "Buy Now", onClick: handleBuyNow }
]}
/>
</div>
@@ -250,6 +257,10 @@ export default function ProductPage({ params }: ProductPageProps) {
onClose={() => setCartOpen(false)}
items={cartItems}
total={cartTotal}
buttons={[
{ text: "Continue Shopping", onClick: () => setCartOpen(false) },
{ text: "Checkout", onClick: handleCheckout }
]}
/>
<div id="footer" data-section="footer">