Merge version_2 into main
Merge version_2 into main
This commit was merged in pull request #1.
This commit is contained in:
@@ -1,6 +1,6 @@
|
|||||||
"use client";
|
"use client";
|
||||||
|
|
||||||
import { use, useCallback, useState } from "react";
|
import { use, useCallback } from "react";
|
||||||
import { useRouter } from "next/navigation";
|
import { useRouter } from "next/navigation";
|
||||||
import ReactLenis from "lenis/react";
|
import ReactLenis from "lenis/react";
|
||||||
import { ThemeProvider } from "@/providers/themeProvider/ThemeProvider";
|
import { ThemeProvider } from "@/providers/themeProvider/ThemeProvider";
|
||||||
@@ -19,7 +19,6 @@ interface ProductPageProps {
|
|||||||
export default function ProductPage({ params }: ProductPageProps) {
|
export default function ProductPage({ params }: ProductPageProps) {
|
||||||
const { id } = use(params);
|
const { id } = use(params);
|
||||||
const router = useRouter();
|
const router = useRouter();
|
||||||
const [cartOpen, setCartOpen] = useState(false);
|
|
||||||
|
|
||||||
const {
|
const {
|
||||||
product,
|
product,
|
||||||
@@ -91,7 +90,6 @@ export default function ProductPage({ params }: ProductPageProps) {
|
|||||||
]}
|
]}
|
||||||
bottomLeftText="Blog Community"
|
bottomLeftText="Blog Community"
|
||||||
bottomRightText="hello@writehub.com"
|
bottomRightText="hello@writehub.com"
|
||||||
button={{ text: "Cart", onClick: () => setCartOpen(true) }}
|
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
<main className="min-h-screen flex items-center justify-center pt-20">
|
<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"
|
bottomLeftText="Blog Community"
|
||||||
bottomRightText="hello@writehub.com"
|
bottomRightText="hello@writehub.com"
|
||||||
button={{ text: "Cart", onClick: () => setCartOpen(true) }}
|
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
<main className="min-h-screen flex items-center justify-center pt-20">
|
<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"
|
bottomLeftText="Blog Community"
|
||||||
bottomRightText="hello@writehub.com"
|
bottomRightText="hello@writehub.com"
|
||||||
button={{ text: "Cart", onClick: () => setCartOpen(true) }}
|
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
<div id="productDetailCard" data-section="productDetailCard">
|
<div id="productDetailCard" data-section="productDetailCard">
|
||||||
|
|||||||
Reference in New Issue
Block a user