Merge version_2 into main
Merge version_2 into main
This commit was merged in pull request #4.
This commit is contained in:
@@ -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' },
|
||||
|
||||
Reference in New Issue
Block a user