Skip to content

Commit

Permalink
pool+batches: add tooltips to all batch stats
Browse files Browse the repository at this point in the history
  • Loading branch information
jamaljsr committed Jan 27, 2021
1 parent 94b727a commit 024e270
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/src/components/pool/batches/BatchCountdown.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ const BatchCountdown: React.FC<Props> = ({ label, timestamp, className, tip }) =
negative={secondsLeft > 0}
className={className}
tip={tip}
tipPlacement="bottom"
tipPlacement="bottomLeft"
tipCapitalize={false}
/>
);
Expand Down
12 changes: 11 additions & 1 deletion app/src/components/pool/batches/BatchStats.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -86,14 +86,24 @@ const BatchStats: React.FC = () => {
/>
</div>
<div>
<Stat label={l('tier')} value={batchesView.tier || <LoaderLines />} />
<Stat
label={l('tier')}
value={batchesView.tier || <LoaderLines />}
tip={l('tierTip')}
{...tipProps}
/>
<Stat
label={l('earned')}
value={<Unit sats={batchesView.earnedSats} suffix={false} />}
tip={l('earnedTip')}
{...tipProps}
/>
<Stat
label={l('paid')}
value={<Unit sats={batchesView.paidSats} suffix={false} />}
tip={l('paidTip')}
{...tipProps}
tipPlacement="bottomRight"
/>
</div>
</Wrapper>
Expand Down
3 changes: 3 additions & 0 deletions app/src/i18n/locales/en-US.json
Original file line number Diff line number Diff line change
Expand Up @@ -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.",
Expand Down

0 comments on commit 024e270

Please sign in to comment.