diff --git a/public/assests/images/Minus-disabled.svg b/public/assests/images/Minus-disabled.svg new file mode 100644 index 0000000000..c769d7212a --- /dev/null +++ b/public/assests/images/Minus-disabled.svg @@ -0,0 +1,5 @@ + + + + + diff --git a/src/components/pages/CartPage.tsx b/src/components/pages/CartPage.tsx index 289bd264c3..549712749c 100644 --- a/src/components/pages/CartPage.tsx +++ b/src/components/pages/CartPage.tsx @@ -76,8 +76,13 @@ export const CartPage: React.FC = () => { onClick={() => editCartItem(item, -1)} className="cart__item--action" type="submit" + style={{ + pointerEvents: item.quantity === 1 + ? 'none' + : 'all', + }} > - icon minus + icon minus {item.quantity}