Skip to content

Commit f9006fb

Browse files
committed
ui: display tooltip for "In Fee %" header
1 parent 7e04d9f commit f9006fb

File tree

3 files changed

+7
-4
lines changed

3 files changed

+7
-4
lines changed

app/src/components/common/Tip.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,11 +68,11 @@ const TooltipWrapper: React.FC<Props> = ({
6868
* prop. So we basically proxy the className using the TooltipWrapper
6969
* above, then export this styled component for the rest of the app to use
7070
*/
71-
const Tip = styled(TooltipWrapper)`
71+
const Tip = styled(TooltipWrapper)<{ capitalize?: boolean }>`
7272
color: ${props => props.theme.colors.blue};
7373
font-family: ${props => props.theme.fonts.open.semiBold};
7474
font-size: ${props => props.theme.sizes.xs};
75-
text-transform: uppercase;
75+
text-transform: ${props => (props.capitalize === false ? 'none' : 'uppercase')};
7676
opacity: 0.95;
7777
7878
&.rc-tooltip-placement-bottom .rc-tooltip-arrow,

app/src/components/loop/ChannelRow.tsx

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,9 @@ export const ChannelRowHeader: React.FC = () => {
7373
<HeaderFour>{l('canSend')}</HeaderFour>
7474
</Column>
7575
<Column cols={1}>
76-
<HeaderFour>{l('feeRate')}</HeaderFour>
76+
<Tip overlay={l('feeRateTip')} capitalize={false}>
77+
<HeaderFour>{l('feeRate')}</HeaderFour>
78+
</Tip>
7779
</Column>
7880
<Column cols={1}>
7981
<HeaderFour>{l('upTime')}</HeaderFour>
@@ -145,7 +147,7 @@ const ChannelRow: React.FC<Props> = ({ channel, style }) => {
145147
<Column cols={1}>{channel.remoteFeeRate}</Column>
146148
<Column cols={1}>{channel.uptimePercent}</Column>
147149
<Column cols={2}>
148-
<Tip overlay={channel.remotePubkey} placement="left">
150+
<Tip overlay={channel.remotePubkey} placement="left" capitalize={false}>
149151
<span>{channel.aliasLabel}</span>
150152
</Tip>
151153
</Column>

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222
"cmps.loop.ChannelRowHeader.canReceive": "Can Receive",
2323
"cmps.loop.ChannelRowHeader.canSend": "Can Send",
2424
"cmps.loop.ChannelRowHeader.feeRate": "In Fee %",
25+
"cmps.loop.ChannelRowHeader.feeRateTip": "The fee charged by the peer to route inbound payments through the channel",
2526
"cmps.loop.ChannelRowHeader.upTime": "Up Time %",
2627
"cmps.loop.ChannelRowHeader.peer": "Peer/Alias",
2728
"cmps.loop.ChannelRowHeader.capacity": "Capacity",

0 commit comments

Comments
 (0)