Skip to content

Commit 024e270

Browse files
committed
pool+batches: add tooltips to all batch stats
1 parent 94b727a commit 024e270

File tree

3 files changed

+15
-2
lines changed

3 files changed

+15
-2
lines changed

app/src/components/pool/batches/BatchCountdown.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ const BatchCountdown: React.FC<Props> = ({ label, timestamp, className, tip }) =
5151
negative={secondsLeft > 0}
5252
className={className}
5353
tip={tip}
54-
tipPlacement="bottom"
54+
tipPlacement="bottomLeft"
5555
tipCapitalize={false}
5656
/>
5757
);

app/src/components/pool/batches/BatchStats.tsx

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,14 +86,24 @@ const BatchStats: React.FC = () => {
8686
/>
8787
</div>
8888
<div>
89-
<Stat label={l('tier')} value={batchesView.tier || <LoaderLines />} />
89+
<Stat
90+
label={l('tier')}
91+
value={batchesView.tier || <LoaderLines />}
92+
tip={l('tierTip')}
93+
{...tipProps}
94+
/>
9095
<Stat
9196
label={l('earned')}
9297
value={<Unit sats={batchesView.earnedSats} suffix={false} />}
98+
tip={l('earnedTip')}
99+
{...tipProps}
93100
/>
94101
<Stat
95102
label={l('paid')}
96103
value={<Unit sats={batchesView.paidSats} suffix={false} />}
104+
tip={l('paidTip')}
105+
{...tipProps}
106+
tipPlacement="bottomRight"
97107
/>
98108
</div>
99109
</Wrapper>

app/src/i18n/locales/en-US.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -167,8 +167,11 @@
167167
"cmps.pool.batches.BatchStats.rateChange": "Change",
168168
"cmps.pool.batches.BatchStats.rateChangeTip": "The percentage change in rate between the previous batch and the one prior",
169169
"cmps.pool.batches.BatchStats.tier": "Node Tier",
170+
"cmps.pool.batches.BatchStats.tierTip": "The current tier of your LND node assigned by the auctioneer",
170171
"cmps.pool.batches.BatchStats.earned": "Earned",
172+
"cmps.pool.batches.BatchStats.earnedTip": "The total amount of satoshis earned from leases",
171173
"cmps.pool.batches.BatchStats.paid": "Paid",
174+
"cmps.pool.batches.BatchStats.paidTip": "The total amount of satoshis paid from leases",
172175
"cmps.pool.batches.BatchControls.markets": "Markets",
173176
"cmps.pool.BatchSection.empty": "There are currently no cleared batches in this market.",
174177
"cmps.pool.orders.OrdersList.emptyMsg": "You do not have any {{filter}} orders.",

0 commit comments

Comments
 (0)