diff --git a/src/app/page.tsx b/src/app/page.tsx index ca78a38..47786ff 100644 --- a/src/app/page.tsx +++ b/src/app/page.tsx @@ -1,4 +1,4 @@ -"use client" +"use client"; import { ThemeProvider } from "@/providers/themeProvider/ThemeProvider"; import NavbarStyleFullscreen from '@/components/navbar/NavbarStyleFullscreen/NavbarStyleFullscreen'; diff --git a/src/app/shop/[id]/page.tsx b/src/app/shop/[id]/page.tsx index f315198..38386a4 100644 --- a/src/app/shop/[id]/page.tsx +++ b/src/app/shop/[id]/page.tsx @@ -84,13 +84,12 @@ export default function ProductPage({ params }: ProductPageProps) {
@@ -119,13 +118,12 @@ export default function ProductPage({ params }: ProductPageProps) {
@@ -161,14 +159,13 @@ export default function ProductPage({ params }: ProductPageProps) {
@@ -188,7 +185,7 @@ export default function ProductPage({ params }: ProductPageProps) { sku={meta.sku} buttons={[ { text: "Add To Cart", onClick: handleAddToCart }, - { text: "Buy Now", onClick: handleBuyNow }, + { text: "Buy Now", onClick: handleBuyNow } ]} />
@@ -202,18 +199,39 @@ export default function ProductPage({ params }: ProductPageProps) { total={`$${cartTotal}`} buttons={[ { - text: isCheckoutLoading ? "Processing..." : "Check Out", onClick: handleCheckout, - }, + text: isCheckoutLoading ? "Processing..." : "Check Out", onClick: handleCheckout + } ]} /> diff --git a/src/app/shop/page.tsx b/src/app/shop/page.tsx index 3a5e176..06477b3 100644 --- a/src/app/shop/page.tsx +++ b/src/app/shop/page.tsx @@ -55,13 +55,12 @@ export default function ShopPage() {
@@ -89,14 +88,13 @@ export default function ShopPage() {
@@ -120,18 +118,39 @@ export default function ShopPage() { total={`$${cartTotal}`} buttons={[ { - text: isCheckoutLoading ? "Processing..." : "Check Out", onClick: handleCheckout, - }, + text: isCheckoutLoading ? "Processing..." : "Check Out", onClick: handleCheckout + } ]} />