update goods

This commit is contained in:
Kirill
2026-05-15 12:50:39 +05:00
parent c5634deb51
commit 89d605adf4
21 changed files with 1594 additions and 306 deletions
+3 -3
View File
@@ -63,7 +63,7 @@ export function CartPage() {
<Stack spacing={2}>
{items.map((x) =>
(() => {
const available = x.product.inStock ? x.product.quantity : 1
const available = x.product.quantity
const canInc = x.qty < available
const over = x.qty > available
return (
@@ -83,9 +83,9 @@ export function CartPage() {
<Typography color="text.secondary" variant="body2">
{formatPriceRub(x.product.priceCents)} · {x.qty} шт. · Доступно: {available}
</Typography>
{!x.product.inStock && (
{x.product.quantity === 0 && (
<Typography color="text.secondary" variant="caption">
Под заказ доставка после изготовления
Нет в наличии
</Typography>
)}
{over && (