Обновить web/app/orders/[id]/page.tsx
This commit is contained in:
parent
755fccf039
commit
b8334cc346
@ -25,7 +25,7 @@ export default function OrderPage() {
|
|||||||
return <p className="error">{error}</p>;
|
return <p className="error">{error}</p>;
|
||||||
}
|
}
|
||||||
if (!order) {
|
if (!order) {
|
||||||
return <p>Загрузка…</p>;
|
return <p>Загрузка...</p>;
|
||||||
}
|
}
|
||||||
|
|
||||||
return (
|
return (
|
||||||
@ -37,10 +37,10 @@ export default function OrderPage() {
|
|||||||
</p>
|
</p>
|
||||||
{order.items.map((item) => (
|
{order.items.map((item) => (
|
||||||
<p key={item.product_id}>
|
<p key={item.product_id}>
|
||||||
{item.title} × {item.qty} — {item.price} ₽
|
{item.title} x {item.qty} - {item.price} руб.
|
||||||
</p>
|
</p>
|
||||||
))}
|
))}
|
||||||
<p>Итого: {order.total} ₽</p>
|
<p>Итого: {order.total} руб.</p>
|
||||||
</>
|
</>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user