diff options
Diffstat (limited to 'src/webex/pages')
-rw-r--r-- | src/webex/pages/confirm-create-reserve.tsx | 6 | ||||
-rw-r--r-- | src/webex/pages/popup.tsx | 19 |
2 files changed, 13 insertions, 12 deletions
diff --git a/src/webex/pages/confirm-create-reserve.tsx b/src/webex/pages/confirm-create-reserve.tsx index 7a754374e..5be6fe351 100644 --- a/src/webex/pages/confirm-create-reserve.tsx +++ b/src/webex/pages/confirm-create-reserve.tsx @@ -231,9 +231,7 @@ class ExchangeSelection extends ImplicitStateComponent<ExchangeSelectionProps> { <i18n.Translate wrap="p"> Using exchange provider <strong>{this.url()}</strong>. The exchange provider will charge - <span> </span> - <span>{renderAmount(totalCost)}</span> - <span> </span> + {" "}<span>{renderAmount(totalCost)}</span>{" "} in fees. </i18n.Translate> {trustMessage} @@ -371,7 +369,7 @@ class ExchangeSelection extends ImplicitStateComponent<ExchangeSelectionProps> { <div> <i18n.Translate wrap="p"> You are about to withdraw - <strong>{renderAmount(this.props.amount)}</strong> + {" "}<strong>{renderAmount(this.props.amount)}</strong>{" "} from your bank account into your wallet. </i18n.Translate> {this.selectingExchange() ? this.renderSelect() : this.renderConfirm()} diff --git a/src/webex/pages/popup.tsx b/src/webex/pages/popup.tsx index 6bba10141..6d0134b84 100644 --- a/src/webex/pages/popup.tsx +++ b/src/webex/pages/popup.tsx @@ -361,7 +361,7 @@ function formatHistoryItem(historyItem: HistoryRecord) { return ( <i18n.Translate wrap="p"> Started to withdraw - {" "}{renderAmount(d.requestedAmount)}<span> </span> + <span>{renderAmount(d.requestedAmount)}</span> from <span>{exchange}</span> (<span>{pub}</span>). </i18n.Translate> ); @@ -369,7 +369,7 @@ function formatHistoryItem(historyItem: HistoryRecord) { case "offer-contract": { return ( <i18n.Translate wrap="p"> - Merchant <em>{abbrev(d.merchantName, 15)}</em> offered<span> </span> + Merchant <em>{abbrev(d.merchantName, 15)}</em> offered contract <span>{abbrev(d.contractTermsHash)}</span>. </i18n.Translate> ); @@ -408,13 +408,16 @@ function formatHistoryItem(historyItem: HistoryRecord) { const tipPageUrl = new URI(chrome.extension.getURL("/src/webex/pages/tip.html")); const params = { tip_id: d.tipId, merchant_domain: d.merchantDomain }; const url = tipPageUrl.query(params).href(); + const tipLink = <a href={url} onClick={openTab(url)}>{i18n.str`tip`}</a>; + // i18n: Tip return ( - <i18n.Translate wrap="p"> - Merchant <span>{d.merchantDomain}</span> gave - a <a href={url} onClick={openTab(url)}> tip</a> of <span>{renderAmount(d.amount)}</span>. - <span> </span> - { d.accepted ? null : <span>You did not accept the tip yet.</span> } - </i18n.Translate> + <> + <i18n.Translate wrap="p"> + Merchant <span>{d.merchantDomain}</span> gave + a <span>{tipLink}</span> of <span>{renderAmount(d.amount)}</span>. + </i18n.Translate> + <span> { d.accepted ? null : <i18n.Translate>You did not accept the tip yet.</i18n.Translate> }</span> + </> ); } default: |