diff --git a/src/components/home/products-section.tsx b/src/components/home/products-section.tsx index 84f43d8..1b7db12 100644 --- a/src/components/home/products-section.tsx +++ b/src/components/home/products-section.tsx @@ -1,6 +1,5 @@ "use client" -import { useState } from "react" import Image from "next/image" import { Card, CardContent, CardDescription, CardHeader, CardTitle } from "@/components/ui/card" import { Container } from "@/components/ui/container" @@ -74,8 +73,6 @@ interface ProductsSectionProps { } export default function ProductsSection({ className }: ProductsSectionProps) { - const [selectedProduct, setSelectedProduct] = useState(null) - return (
@@ -149,7 +146,6 @@ export default function ProductsSection({ className }: ProductsSectionProps) { variant="outline" size="sm" className="flex-1" - onClick={() => setSelectedProduct(product)} > View Details @@ -194,7 +190,6 @@ export default function ProductsSection({ className }: ProductsSectionProps) { width={1200} height={675} className="w-full h-auto object-cover" - priority /> diff --git a/src/components/ui/dialog.tsx b/src/components/ui/dialog.tsx index 2844f05..c28acf6 100644 --- a/src/components/ui/dialog.tsx +++ b/src/components/ui/dialog.tsx @@ -53,10 +53,12 @@ const DialogContent = React.forwardRef< )) DialogContent.displayName = DialogPrimitive.Content.displayName +export interface DialogHeaderProps extends React.HTMLAttributes {} + const DialogHeader = ({ className, ...props -}: React.HTMLAttributes) => ( +}: DialogHeaderProps) => (
{} + const DialogFooter = ({ className, ...props -}: React.HTMLAttributes) => ( +}: DialogFooterProps) => (