@hanzo/commerce 3.0.0 → 3.0.1
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.
|
@@ -30,7 +30,6 @@ const CartPanel: React.FC<PropsWithChildren & {
|
|
|
30
30
|
<div className={cn('border p-4 rounded-lg', className)}>
|
|
31
31
|
{children}
|
|
32
32
|
<div className='mt-2 w-full'>
|
|
33
|
-
{!!children && <div className='h-[1px] w-pr-80 mb-4 mx-auto bg-muted-3'/>}
|
|
34
33
|
{cmmc.cartEmpty ? (
|
|
35
34
|
<p className='text-center mt-4'>No items in cart</p>
|
|
36
35
|
) : (<>
|
package/package.json
CHANGED
|
@@ -6,9 +6,9 @@ interface CommerceService extends ObsLineItemRef {
|
|
|
6
6
|
|
|
7
7
|
/** Items in cart */
|
|
8
8
|
get cartItems(): LineItem[]
|
|
9
|
-
/** Total of all quantities of all
|
|
9
|
+
/** Total of all quantities of all items in cart */
|
|
10
10
|
get cartQuantity(): number
|
|
11
|
-
/** Total of all prices * quantities of
|
|
11
|
+
/** Total of all prices * quantities of items in cart */
|
|
12
12
|
get cartTotal(): number
|
|
13
13
|
|
|
14
14
|
get cartEmpty(): boolean
|