@hanzo/commerce 7.1.9 → 7.1.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -41,26 +41,21 @@ const CartLineItem: React.FC<{
|
|
|
41
41
|
const promoPrice = showPromoCode ? cmmc.itemPromoPrice(item) : undefined
|
|
42
42
|
|
|
43
43
|
return (
|
|
44
|
-
<div
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
onClick={() => {itemClicked && itemClicked(item)}}
|
|
55
|
-
>
|
|
56
|
-
{/* 1px gap between image and border for better emphasis w small images */}
|
|
57
|
-
<div className={ /*selected ? 'border-foreground p-[1px] border rounded-sm' : 'p-[2px]' */ ''}>
|
|
44
|
+
<div
|
|
45
|
+
className={cn(
|
|
46
|
+
'flex flex-col justify-start items-start text-sm font-sans',
|
|
47
|
+
selected ? 'border-foreground border rounded-sm p-[4px]' : 'p-[5px]',
|
|
48
|
+
(itemClicked && !selected ? 'cursor-pointer ' : 'cursor-default '),
|
|
49
|
+
className
|
|
50
|
+
)}
|
|
51
|
+
onClick={() => {itemClicked && itemClicked(item)}}
|
|
52
|
+
>
|
|
53
|
+
<div className='flex flex-row justify-between items-center gap-1' >
|
|
58
54
|
{item.img ? (
|
|
59
55
|
<Image def={item.img} constrainTo={{w: imgSizePx, h: imgSizePx}} />
|
|
60
56
|
) : ( // placeholder so things align
|
|
61
57
|
<div style={{height: imgSizePx, width: imgSizePx}} className='bg-level-3'/>
|
|
62
58
|
)}
|
|
63
|
-
</div>
|
|
64
59
|
<div className='grow leading-tight ml-1'>{renderTitle(item.title)}</div>
|
|
65
60
|
</div>
|
|
66
61
|
<div className='flex flex-row items-center justify-between w-full'>
|