fix: use priceStr for order payment currency in OrderDetail

This commit is contained in:
thesn10
2026-06-25 12:45:33 +02:00
parent 530ea63d36
commit d3b14e7a5f

View File

@@ -9,7 +9,7 @@ import { EscrowStateMachine } from '@/components/EscrowStateMachine'
import { FieldRow, MonoChip } from '@/components/ui/FieldRow'
import { Badge, STATUS_COLORS } from '@/components/ui/Badge'
import { Button } from '@/components/ui/Button'
import { abbrev, fmtSol } from '@/lib/format'
import { abbrev, fmtSol, priceStr } from '@/lib/format'
import type { Address } from '@solisting/sdk'
interface Props {
@@ -74,7 +74,7 @@ export function OrderDetail({ pk, walletAddress, onAccept, onReject, onCancel, o
<FieldRow label="Order ID"><span style={{ fontSize: 13.5, fontWeight: 600 }}>#{String(od.orderId)}</span></FieldRow>
<FieldRow label="Listing"><MonoChip value={abbrev(od.listing)} onClick={() => router.push(`/listing/${od.listing}`)} onCopy={() => navigator.clipboard.writeText(od.listing)} /></FieldRow>
<FieldRow label="Buyer"><MonoChip value={abbrev(od.buyer)} onCopy={() => navigator.clipboard.writeText(od.buyer)} /></FieldRow>
<FieldRow label="Amount"><span style={{ fontSize: 13.5, fontWeight: 600 }}>{fmtSol(od.amount)}</span></FieldRow>
<FieldRow label="Amount"><span style={{ fontSize: 13.5, fontWeight: 600 }}>{priceStr(od.paymentCurrency, od.amount)}</span></FieldRow>
<FieldRow label="Escrow ID"><span style={{ fontFamily: 'var(--font-mono)', fontSize: 12.5 }}>#{String(od.escrowId)}</span></FieldRow>
<FieldRow label="Escrow Account" last><MonoChip value={abbrev(od.escrowAccount)} onCopy={() => navigator.clipboard.writeText(od.escrowAccount)} /></FieldRow>
</div>