fix cards
This commit is contained in:
@@ -124,7 +124,7 @@ export default function CartMobileTabletLayout({
|
|||||||
{items.map((item, index) => (
|
{items.map((item, index) => (
|
||||||
<ProductChoicesCard
|
<ProductChoicesCard
|
||||||
key={index}
|
key={index}
|
||||||
product={item}
|
product={{ ...item, type: "CartItem" }}
|
||||||
addDividerAfter={index !== items.length - 1}
|
addDividerAfter={index !== items.length - 1}
|
||||||
/>
|
/>
|
||||||
))}
|
))}
|
||||||
|
|||||||
@@ -30,7 +30,7 @@ export default function OrderDetails() {
|
|||||||
{orderDetails?.orderItems.map((item, index) => (
|
{orderDetails?.orderItems.map((item, index) => (
|
||||||
<ProductChoicesCard
|
<ProductChoicesCard
|
||||||
key={index}
|
key={index}
|
||||||
product={item}
|
product={{ ...item, type: "OrderItem" }}
|
||||||
addDividerAfter={index !== orderDetails?.orderItems.length - 1}
|
addDividerAfter={index !== orderDetails?.orderItems.length - 1}
|
||||||
/>
|
/>
|
||||||
))}
|
))}
|
||||||
|
|||||||
Reference in New Issue
Block a user