diff --git a/src/app/shop/[id]/page.tsx b/src/app/shop/[id]/page.tsx index c57a87e..4b05e87 100644 --- a/src/app/shop/[id]/page.tsx +++ b/src/app/shop/[id]/page.tsx @@ -74,93 +74,9 @@ function ProductPageContent({ params }: ProductPageProps) { await checkout(getCheckoutItems(), { successUrl: currentUrl.toString() }); }, [cartItems, checkout, getCheckoutItems]); - if (isLoading) { - return ( - - - - setCartOpen(true) }} - /> - - - - Loading product... - - - - - - ); - } - if (!product) { - return ( - - - - setCartOpen(true) }} - /> - - - - - Product not found - router.push("/shop")} - className="primary-button px-6 py-2 rounded-theme text-primary-cta-text" - > - Back to Shop - - - - - - - - ); - } + const navItems = [{ name: "Home", id: "/" }, { name: "Blog", id: "/blog" }, { name: "Shop", id: "/shop" }]; + const footerColumns = [{ items: [{ label: "Home", href: "/" }, { label: "Services", href: "/#features" }, { label: "About Us", href: "/#about" }] }, { items: [{ label: "Clients", href: "/#social-proof" }, { label: "Testimonials", href: "/#testimonials" }, { label: "Contact", href: "/#contact" }] }]; return ( - + setCartOpen(true) }} /> - + + {isLoading && ( + + + Loading product... + + + )} + + {!isLoading && !product && ( + + + + Product not found + router.push("/shop")} + className="primary-button px-6 py-2 rounded-theme text-primary-cta-text" + > + Back to Shop + + + + + )} + + {!isLoading && product && ( + - + + )} + +
Loading product...
Product not found