ui(earn): improve offer summary display (#544)

* feat(earn): add label to offer string

* feat(earn): improve wording
This commit is contained in:
Gigi 2022-10-15 12:00:24 +02:00 committed by GitHub
parent 624c395746
commit ae954d7d19
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 8 additions and 4 deletions

View file

@ -91,8 +91,11 @@ function CurrentOffer({ offer, nickname }) {
return (
<div className={styles.offerContainer}>
<div className="d-flex justify-content-between align-items-center">
<div className={`${styles.offerTitle} slashed-zeroes`}>
{nickname}:{offer.oid}
<div className="d-flex flex-column">
<div className={styles.offerLabel}>{t('earn.current.text_offer')}</div>
<div className={`${styles.offerTitle} slashed-zeroes`}>
{nickname}:{offer.oid}
</div>
</div>
<div className="d-flex align-items-center gap-1">{renderOrderType(offer.ordertype, t)}</div>
</div>

View file

@ -288,14 +288,14 @@
},
"earn": {
"title": "Earn",
"subtitle": "By providing liquidity to the market, you improve the privacy of yourself and others. Your sats always remain under your control and never leave your wallet.",
"subtitle": "By offering liquidity to the market, you improve the privacy of yourself and others. Your sats always remain under your control and never leave your wallet.",
"market_explainer": "You can choose how much you want to charge for your offer. Note that you participate and compete in an open market—there is no guarantee that other market participants will take you up on your offer. Being chosen for a collaborative transaction can take some time. Low fees increase your chances.",
"alert_empty_report": "The report is empty.",
"text_report_length": "Showing {{ visibleLines }} of {{ linesWithoutHeader }} entries",
"error_loading_report_failed": "Failed to load earnings report.",
"alert_starting": "Service is starting.",
"alert_stopping": "Service is stopping.",
"alert_running": "Earning sats...",
"alert_running": "Offering sats to earn more sats...",
"alert_coinjoin_in_progress": "A collaborative transaction is currently in progress.",
"button_settings": "Offer options",
"radio_abs_offer_label": "Absolute offer",
@ -315,6 +315,7 @@
"button_show_report": "Show earnings report",
"button_show_orderbook": "Show orderbook",
"current": {
"text_offer": "Offer",
"text_cjfee": "Fee",
"text_minsize": "Minimum Size",
"text_maxsize": "Maximum Size",