diff options
| author | Rafi Zadanly <zadanlyr@gmail.com> | 2023-02-20 13:09:22 +0700 |
|---|---|---|
| committer | Rafi Zadanly <zadanlyr@gmail.com> | 2023-02-20 13:09:22 +0700 |
| commit | fdefe7cfe899125a9bd553b542976eed0de919c1 (patch) | |
| tree | 0c3648d1e18249b42e7507847469c0ec87b933b7 /src/lib/cart/components | |
| parent | 58ab91f8a99a79e0dbae33cf71830e4d1646e264 (diff) | |
fix
Diffstat (limited to 'src/lib/cart/components')
| -rw-r--r-- | src/lib/cart/components/Cart.jsx | 5 |
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" /> |
