update
Build & Deploy (develop) / build-and-deploy (push) Successful in 1m44s

This commit is contained in:
2026-09-14 08:36:22 +03:30
parent c4d9351e91
commit fe86b58012
5 changed files with 102 additions and 68 deletions
+3 -4
View File
@@ -11,8 +11,7 @@ import {
selectIsDrawerOpen,
closeDrawer,
removeFromCart,
incrementQty,
decrementQty,
setQuantity,
} from '@/store/cartSlice';
import {useLanguage} from '@/app/context/LanguageContext';
import api from "@/lib/axios";
@@ -77,10 +76,10 @@ export default function CartDrawer() {
<InputNumber
size="small"
min={1}
precision={0}
value={item.qty}
onChange={(val) => {
if (val > item.qty) dispatch(incrementQty(item.id));
else if (val < item.qty) dispatch(decrementQty(item.id));
if (val !== null) dispatch(setQuantity({id: item.id, qty: val}));
}}
className="w-16"
/>