Merge version_2 into main

Merge version_2 into main
This commit was merged in pull request #4.
This commit is contained in:
2026-03-23 21:51:45 +00:00

View File

@@ -6,8 +6,22 @@ import FooterCard from '@/components/sections/footer/FooterCard';
import { useCart } from '@/components/cart/CartProvider';
import { ShoppingCart, Trash2, Facebook, Twitter, Instagram } from 'lucide-react';
interface CartContextTypeExtended {
cartItems: Array<{
id: string;
imageSrc: string;
imageAlt: string;
name: string;
price: string;
quantity: number;
}>;
removeFromCart: (id: string) => void;
updateQuantity: (id: string, quantity: number) => void;
getTotalPrice: () => number;
}
const CartPageContent = () => {
const { cartItems, removeFromCart, updateQuantity, getTotalPrice } = useCart();
const { cartItems, removeFromCart, updateQuantity, getTotalPrice } = useCart() as CartContextTypeExtended;
const navItems = [
{ name: 'Products', id: '/products' },