Update src/app/shop/[id]/page.tsx
This commit is contained in:
@@ -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">
|
||||
|
||||
Reference in New Issue
Block a user