fix: use priceStr for order payment currency in OrderDetail
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user