From 024e270b77d2307b901ca3dcd9143ec9252b8a52 Mon Sep 17 00:00:00 2001 From: jamaljsr <1356600+jamaljsr@users.noreply.github.com> Date: Fri, 22 Jan 2021 23:01:44 -0500 Subject: [PATCH] pool+batches: add tooltips to all batch stats --- app/src/components/pool/batches/BatchCountdown.tsx | 2 +- app/src/components/pool/batches/BatchStats.tsx | 12 +++++++++++- app/src/i18n/locales/en-US.json | 3 +++ 3 files changed, 15 insertions(+), 2 deletions(-) diff --git a/app/src/components/pool/batches/BatchCountdown.tsx b/app/src/components/pool/batches/BatchCountdown.tsx index 7ae0ebb2..396c8c90 100644 --- a/app/src/components/pool/batches/BatchCountdown.tsx +++ b/app/src/components/pool/batches/BatchCountdown.tsx @@ -51,7 +51,7 @@ const BatchCountdown: React.FC = ({ label, timestamp, className, tip }) = negative={secondsLeft > 0} className={className} tip={tip} - tipPlacement="bottom" + tipPlacement="bottomLeft" tipCapitalize={false} /> ); diff --git a/app/src/components/pool/batches/BatchStats.tsx b/app/src/components/pool/batches/BatchStats.tsx index 7add8034..b8563096 100644 --- a/app/src/components/pool/batches/BatchStats.tsx +++ b/app/src/components/pool/batches/BatchStats.tsx @@ -86,14 +86,24 @@ const BatchStats: React.FC = () => { />
- } /> + } + tip={l('tierTip')} + {...tipProps} + /> } + tip={l('earnedTip')} + {...tipProps} /> } + tip={l('paidTip')} + {...tipProps} + tipPlacement="bottomRight" />
diff --git a/app/src/i18n/locales/en-US.json b/app/src/i18n/locales/en-US.json index 26111a71..d8b86bf7 100644 --- a/app/src/i18n/locales/en-US.json +++ b/app/src/i18n/locales/en-US.json @@ -167,8 +167,11 @@ "cmps.pool.batches.BatchStats.rateChange": "Change", "cmps.pool.batches.BatchStats.rateChangeTip": "The percentage change in rate between the previous batch and the one prior", "cmps.pool.batches.BatchStats.tier": "Node Tier", + "cmps.pool.batches.BatchStats.tierTip": "The current tier of your LND node assigned by the auctioneer", "cmps.pool.batches.BatchStats.earned": "Earned", + "cmps.pool.batches.BatchStats.earnedTip": "The total amount of satoshis earned from leases", "cmps.pool.batches.BatchStats.paid": "Paid", + "cmps.pool.batches.BatchStats.paidTip": "The total amount of satoshis paid from leases", "cmps.pool.batches.BatchControls.markets": "Markets", "cmps.pool.BatchSection.empty": "There are currently no cleared batches in this market.", "cmps.pool.orders.OrdersList.emptyMsg": "You do not have any {{filter}} orders.",