summaryrefslogtreecommitdiff
path: root/src/lib
diff options
context:
space:
mode:
authorRafi Zadanly <zadanlyr@gmail.com>2023-02-20 13:09:22 +0700
committerRafi Zadanly <zadanlyr@gmail.com>2023-02-20 13:09:22 +0700
commitfdefe7cfe899125a9bd553b542976eed0de919c1 (patch)
tree0c3648d1e18249b42e7507847469c0ec87b933b7 /src/lib
parent58ab91f8a99a79e0dbae33cf71830e4d1646e264 (diff)
fix
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" />