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

This commit is contained in:
2026-02-09 16:30:51 +00:00
parent 49b86aa5ec
commit 2491e78fda

View File

@@ -1,6 +1,6 @@
"use client";
import { use, useCallback, useState } from "react";
import { use, useCallback } from "react";
import { useRouter } from "next/navigation";
import ReactLenis from "lenis/react";
import { ThemeProvider } from "@/providers/themeProvider/ThemeProvider";
@@ -19,7 +19,6 @@ interface ProductPageProps {
export default function ProductPage({ params }: ProductPageProps) {
const { id } = use(params);
const router = useRouter();
const [cartOpen, setCartOpen] = useState(false);
const {
product,
@@ -91,7 +90,6 @@ export default function ProductPage({ params }: ProductPageProps) {
]}
bottomLeftText="Blog Community"
bottomRightText="hello@writehub.com"
button={{ text: "Cart", onClick: () => setCartOpen(true) }}
/>
</div>
<main className="min-h-screen flex items-center justify-center pt-20">
@@ -126,7 +124,6 @@ export default function ProductPage({ params }: ProductPageProps) {
]}
bottomLeftText="Blog Community"
bottomRightText="hello@writehub.com"
button={{ text: "Cart", onClick: () => setCartOpen(true) }}
/>
</div>
<main className="min-h-screen flex items-center justify-center pt-20">
@@ -168,7 +165,6 @@ export default function ProductPage({ params }: ProductPageProps) {
]}
bottomLeftText="Blog Community"
bottomRightText="hello@writehub.com"
button={{ text: "Cart", onClick: () => setCartOpen(true) }}
/>
</div>
<div id="productDetailCard" data-section="productDetailCard">