From 3a9fece564ad332e6cc4bd03bac679bdf5079466 Mon Sep 17 00:00:00 2001 From: kudindmitriy Date: Mon, 23 Feb 2026 00:13:44 +0200 Subject: [PATCH 1/5] Bob AI: fix build errors (attempt 1) --- src/app/shop/[id]/page.tsx | 11 ++++++----- src/app/shop/page.tsx | 4 ++-- 2 files changed, 8 insertions(+), 7 deletions(-) diff --git a/src/app/shop/[id]/page.tsx b/src/app/shop/[id]/page.tsx index c55a05c..25de70f 100644 --- a/src/app/shop/[id]/page.tsx +++ b/src/app/shop/[id]/page.tsx @@ -1,4 +1,4 @@ -use client"; +"use client"; import { Suspense, use, useCallback } from "react"; import { useRouter } from "next/navigation"; @@ -13,7 +13,7 @@ import { useCheckout } from "@/hooks/useCheckout"; import FooterMedia from '@/components/sections/footer/FooterMedia'; interface ProductPageProps { - params: Promise<{ id: string }>; + params: { id: string }; } export default function ProductPage({ params }: ProductPageProps) { @@ -25,7 +25,7 @@ export default function ProductPage({ params }: ProductPageProps) { } function ProductPageContent({ params }: ProductPageProps) { - const { id } = use(params); + const { id } = params; const router = useRouter(); const { @@ -217,7 +217,8 @@ function ProductPageContent({ params }: ProductPageProps) { total={`$${cartTotal}`} buttons={[ { - text: isCheckoutLoading ? "Processing..." : "Check Out", onClick: handleCheckout, + text: isCheckoutLoading ? "Processing..." : "Check Out", + onClick: handleCheckout, }, ]} /> @@ -226,4 +227,4 @@ function ProductPageContent({ params }: ProductPageProps) { ); -} +} \ No newline at end of file diff --git a/src/app/shop/page.tsx b/src/app/shop/page.tsx index 837766e..88512ba 100644 --- a/src/app/shop/page.tsx +++ b/src/app/shop/page.tsx @@ -1,4 +1,4 @@ -use client"; +"use client"; import { Suspense } from "react"; import ReactLenis from "lenis/react"; @@ -142,4 +142,4 @@ export default function ShopPage() { ); -} +} \ No newline at end of file -- 2.49.1 From 1d44720d257d133df2ec9a95e956c953a444e92c Mon Sep 17 00:00:00 2001 From: bender Date: Sun, 22 Feb 2026 22:26:53 +0000 Subject: [PATCH 2/5] Update src/app/blog/page.tsx --- src/app/blog/page.tsx | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/src/app/blog/page.tsx b/src/app/blog/page.tsx index 29efa75..bb10cc8 100644 --- a/src/app/blog/page.tsx +++ b/src/app/blog/page.tsx @@ -28,13 +28,13 @@ export default function BlogPage() { Date: Sun, 22 Feb 2026 22:26:54 +0000 Subject: [PATCH 3/5] Update src/app/page.tsx --- src/app/page.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/app/page.tsx b/src/app/page.tsx index 4a2e68b..2df940e 100644 --- a/src/app/page.tsx +++ b/src/app/page.tsx @@ -27,7 +27,7 @@ export default function SitePage() {