Merge version_1 into main #2
@@ -19,21 +19,13 @@ interface CartItem {
|
||||
const CartPage = () => {
|
||||
const [cartItems, setCartItems] = useState<CartItem[]>([
|
||||
{
|
||||
id: "handbag-1",
|
||||
name: "Italian Leather Tote",
|
||||
price: 285,
|
||||
id: "handbag-1", name: "Italian Leather Tote", price: 285,
|
||||
quantity: 1,
|
||||
imageSrc: "http://img.b2bpic.net/free-photo/view-women-s-purse-tiles-with-mediterranean-aesthetics_23-2150916670.jpg?_wi=8",
|
||||
imageAlt: "Italian leather tote bag",
|
||||
},
|
||||
imageSrc: "http://img.b2bpic.net/free-photo/view-women-s-purse-tiles-with-mediterranean-aesthetics_23-2150916670.jpg", imageAlt: "Italian leather tote bag"},
|
||||
{
|
||||
id: "handbag-2",
|
||||
name: "Silk-Lined Crossbody",
|
||||
price: 195,
|
||||
id: "handbag-2", name: "Silk-Lined Crossbody", price: 195,
|
||||
quantity: 2,
|
||||
imageSrc: "http://img.b2bpic.net/free-photo/young-beautiful-stylish-woman-walking-street-pink-coat-holding-purse-hands-listening-music_285396-1196.jpg?_wi=7",
|
||||
imageAlt: "Elegant crossbody bag",
|
||||
},
|
||||
imageSrc: "http://img.b2bpic.net/free-photo/young-beautiful-stylish-woman-walking-street-pink-coat-holding-purse-hands-listening-music_285396-1196.jpg", imageAlt: "Elegant crossbody bag"},
|
||||
]);
|
||||
|
||||
const navItems = [
|
||||
@@ -176,7 +168,7 @@ const CartPage = () => {
|
||||
{/* Item Total and Remove */}
|
||||
<div className="flex flex-col items-end justify-between">
|
||||
<p className="text-sm text-[#25190c]/60">
|
||||
Total: ${(item.price * item.quantity).toFixed(2)}
|
||||
Total: ${((item.price * item.quantity) as number).toFixed(2)}
|
||||
</p>
|
||||
<button
|
||||
onClick={() => handleRemoveItem(item.id)}
|
||||
@@ -296,13 +288,9 @@ const CartPage = () => {
|
||||
<FooterLogoReveal
|
||||
logoText="The Refined Room"
|
||||
leftLink={{
|
||||
text: "Privacy Policy",
|
||||
href: "/privacy",
|
||||
}}
|
||||
text: "Privacy Policy", href: "/privacy"}}
|
||||
rightLink={{
|
||||
text: "Terms of Service",
|
||||
href: "/terms",
|
||||
}}
|
||||
text: "Terms of Service", href: "/terms"}}
|
||||
/>
|
||||
</div>
|
||||
</ThemeProvider>
|
||||
|
||||
Reference in New Issue
Block a user