Merge version_2 into main #3
@@ -50,6 +50,7 @@ export default function LandingPage() {
|
||||
total={`$${cartItems.reduce((acc, item) => acc + (parseFloat(item.price.replace('$', '')) || 0) * item.quantity, 0).toFixed(2)}`}
|
||||
onRemove={(id) => setCartItems(prev => prev.filter(i => i.id !== id))}
|
||||
onQuantityChange={(id, qty) => setCartItems(prev => prev.map(i => i.id === id ? {...i, quantity: qty} : i))}
|
||||
buttons={[{ text: "Checkout", onClick: () => console.log("Checkout") }]}
|
||||
/>
|
||||
|
||||
<div id="nav" data-section="nav">
|
||||
|
||||
Reference in New Issue
Block a user