From 5429eb27244245d377aac18bbf6c9e6e03643192 Mon Sep 17 00:00:00 2001 From: bender Date: Sun, 22 Feb 2026 12:20:19 +0000 Subject: [PATCH] Update src/app/shop/[id]/page.tsx --- src/app/shop/[id]/page.tsx | 171 ++++++++++++++++++++++++------------- 1 file changed, 114 insertions(+), 57 deletions(-) diff --git a/src/app/shop/[id]/page.tsx b/src/app/shop/[id]/page.tsx index f8f6eb7..7739dcd 100644 --- a/src/app/shop/[id]/page.tsx +++ b/src/app/shop/[id]/page.tsx @@ -77,41 +77,60 @@ function ProductPageContent({ params }: ProductPageProps) { if (isLoading) { return (
-

Завантаження товару...

+

Loading product...

@@ -122,47 +141,66 @@ function ProductPageContent({ params }: ProductPageProps) { if (!product) { return (
-

Товар не знайдено

+

Product not found

@@ -172,26 +210,33 @@ function ProductPageContent({ params }: ProductPageProps) { return (
@@ -210,8 +255,8 @@ function ProductPageContent({ params }: ProductPageProps) { inventoryQuantity={meta.inventoryQuantity} sku={meta.sku} buttons={[ - { text: "Додати до кошика", onClick: handleAddToCart }, - { text: "Купити зараз", onClick: handleBuyNow } + { text: "Add to Cart", onClick: handleAddToCart }, + { text: "Buy Now", onClick: handleBuyNow } ]} />
@@ -225,19 +270,31 @@ function ProductPageContent({ params }: ProductPageProps) { total={`$${cartTotal}`} buttons={[ { - text: isCheckoutLoading ? "Обробка..." : "Оформити замовлення", onClick: handleCheckout, + text: isCheckoutLoading ? "Processing..." : "Checkout", onClick: handleCheckout, }, ]} />