diff options
Diffstat (limited to 'src/pages/tree.tsx')
-rw-r--r-- | src/pages/tree.tsx | 19 |
1 files changed, 9 insertions, 10 deletions
diff --git a/src/pages/tree.tsx b/src/pages/tree.tsx index 201d411ac..8d1258c51 100644 --- a/src/pages/tree.tsx +++ b/src/pages/tree.tsx @@ -35,8 +35,7 @@ import { getReserves, getExchanges, getCoins, getPreCoins, refresh, getDenoms, payback, } from "../wxApi"; -import { prettyAmount } from "../renderHtml"; -import { getTalerStampDate } from "../helpers"; +import { amountToPretty, getTalerStampDate } from "../helpers"; import * as React from "react"; import * as ReactDOM from "react-dom"; @@ -52,8 +51,8 @@ class ReserveView extends React.Component<ReserveViewProps, void> { <ul> <li>Key: {r.reserve_pub}</li> <li>Created: {(new Date(r.created * 1000).toString())}</li> - <li>Current: {r.current_amount ? prettyAmount(r.current_amount!) : "null"}</li> - <li>Requested: {prettyAmount(r.requested_amount)}</li> + <li>Current: {r.current_amount ? amountToPretty(r.current_amount!) : "null"}</li> + <li>Requested: {amountToPretty(r.requested_amount)}</li> <li>Confirmed: {r.confirmed}</li> </ul> </div> @@ -130,7 +129,7 @@ class CoinView extends React.Component<CoinViewProps, void> { <div className="tree-item"> <ul> <li>Key: {c.coinPub}</li> - <li>Current amount: {prettyAmount(c.currentAmount)}</li> + <li>Current amount: {amountToPretty(c.currentAmount)}</li> <li>Denomination: <ExpanderText text={c.denomPub} /></li> <li>Suspended: {(c.suspended || false).toString()}</li> <li>Status: {CoinStatus[c.status]}</li> @@ -300,11 +299,11 @@ class DenominationList extends ImplicitStateComponent<DenominationListProps> { <div className="tree-item"> <ul> <li>Offered: {d.isOffered ? "yes" : "no"}</li> - <li>Value: {prettyAmount(d.value)}</li> - <li>Withdraw fee: {prettyAmount(d.feeWithdraw)}</li> - <li>Refresh fee: {prettyAmount(d.feeRefresh)}</li> - <li>Deposit fee: {prettyAmount(d.feeDeposit)}</li> - <li>Refund fee: {prettyAmount(d.feeRefund)}</li> + <li>Value: {amountToPretty(d.value)}</li> + <li>Withdraw fee: {amountToPretty(d.feeWithdraw)}</li> + <li>Refresh fee: {amountToPretty(d.feeRefresh)}</li> + <li>Deposit fee: {amountToPretty(d.feeDeposit)}</li> + <li>Refund fee: {amountToPretty(d.feeRefund)}</li> <li>Start: {getTalerStampDate(d.stampStart)!.toString()}</li> <li>Withdraw expiration: {getTalerStampDate(d.stampExpireWithdraw)!.toString()}</li> <li>Legal expiration: {getTalerStampDate(d.stampExpireLegal)!.toString()}</li> |