summaryrefslogtreecommitdiff
path: root/src/lib
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib')
-rw-r--r--src/lib/cart/components/Cart.jsx5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/lib/cart/components/Cart.jsx b/src/lib/cart/components/Cart.jsx
index 0b6ea768..4b9dd41f 100644
--- a/src/lib/cart/components/Cart.jsx
+++ b/src/lib/cart/components/Cart.jsx
@@ -166,11 +166,12 @@ const Cart = () => {
<div className="text-red_r-11 font-medium">
{ currencyFormat(product?.price?.priceDiscount * product?.quantity) }
</div>
- <div className="flex gap-x-2">
+ <div className="flex gap-x-1">
<button
type="button"
className="btn-light px-2 py-1"
onClick={() => updateQuantity(1, product?.id, 'MINUS')}
+ disabled={product?.quantity == 1}
>
-
</button>
@@ -189,7 +190,7 @@ const Cart = () => {
+
</button>
<button
- className="btn-red p-1"
+ className="btn-red p-1 ml-1"
onClick={() => setDeleteConfirmation(product)}
>
<TrashIcon className="w-4" />