diff --git a/src/app/page.tsx b/src/app/page.tsx index 2be5046..1145101 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 NavbarLayoutFloatingInline from '@/components/navbar/NavbarLayoutFloatingInline'; diff --git a/src/app/shop/[id]/page.tsx b/src/app/shop/[id]/page.tsx index 70c1863..991a373 100644 --- a/src/app/shop/[id]/page.tsx +++ b/src/app/shop/[id]/page.tsx @@ -195,8 +195,8 @@ 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 } + ]} />
@@ -209,9 +209,9 @@ export default function ProductPage({ params }: ProductPageProps) { total={`$${cartTotal}`} buttons={[ { - text: isCheckoutLoading ? "Processing..." : "Check Out", onClick: handleCheckout, - }, - ] + text: isCheckoutLoading ? "Processing..." : "Check Out", onClick: handleCheckout + } + ]} />