diff --git a/src/app/shop/[id]/page.tsx b/src/app/shop/[id]/page.tsx index 97d3cbb..d932ade 100644 --- a/src/app/shop/[id]/page.tsx +++ b/src/app/shop/[id]/page.tsx @@ -16,6 +16,19 @@ interface ProductPageProps { params: Promise<{ id: string }>; } +const navItems = [ + { name: "Home", id: "/" }, + { name: "Services", id: "/#features" }, + { name: "About Us", id: "/#about" }, + { name: "Testimonials", id: "/#testimonials" }, + { name: "Contact", id: "/#contact" }, +]; + +const footerColumns = [ + { title: "Services", items: [{ label: "Roof Repair", href: "/#features" }, { label: "New Roofs", href: "/#features" }, { label: "Gutter Services", href: "/#features" }] }, + { title: "Company", items: [{ label: "About Us", href: "/#about" }, { label: "Testimonials", href: "/#testimonials" }, { label: "Contact", href: "/#contact" }] } +]; + export default function ProductPage({ params }: ProductPageProps) { return ( @@ -56,8 +69,9 @@ function ProductPageContent({ params }: ProductPageProps) { const item = createCartItem(); if (item) { addItem(item); + setCartOpen(true); } - }, [createCartItem, addItem]); + }, [createCartItem, addItem, setCartOpen]); const handleBuyNow = useCallback(() => { if (product) { @@ -89,16 +103,12 @@ function ProductPageContent({ params }: ProductPageProps) { headingFontWeight="normal" > -