From a82e3711d52d6f4f6bb643c9ac8785c3b8dfa617 Mon Sep 17 00:00:00 2001 From: bender Date: Mon, 23 Feb 2026 14:35:29 +0000 Subject: [PATCH] Update src/app/shop/[id]/page.tsx --- src/app/shop/[id]/page.tsx | 23 ++++++++++------------- 1 file changed, 10 insertions(+), 13 deletions(-) diff --git a/src/app/shop/[id]/page.tsx b/src/app/shop/[id]/page.tsx index 98b3782..9920d2d 100644 --- a/src/app/shop/[id]/page.tsx +++ b/src/app/shop/[id]/page.tsx @@ -1,6 +1,6 @@ -use client"; +"use client"; -import { Suspense, use, useCallback } from "react"; +import { Suspense, useCallback } from "react"; import { useRouter } from "next/navigation"; import ReactLenis from "lenis/react"; import { ThemeProvider } from "@/providers/themeProvider/ThemeProvider"; @@ -13,7 +13,7 @@ import { useCart } from "@/hooks/useCart"; import { useCheckout } from "@/hooks/useCheckout"; 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 { @@ -95,7 +95,6 @@ function ProductPageContent({ params }: ProductPageProps) { brandName="Pia" bottomLeftText="Experience the perfect brew." bottomRightText="hello@piacoffee.com" - button={{ text: "Cart", onClick: () => setCartOpen(true) }} />
@@ -104,8 +103,8 @@ function ProductPageContent({ params }: ProductPageProps) {
@@ -155,8 +153,8 @@ function ProductPageContent({ params }: ProductPageProps) {
@@ -230,8 +227,8 @@ function ProductPageContent({ params }: ProductPageProps) {