add help link

This commit is contained in:
Sean Yesmunt 2020-10-12 17:24:32 -04:00
parent 4815aa9ff1
commit 88c86ff447
2 changed files with 9 additions and 1 deletions

View file

@ -10,6 +10,7 @@ import Spinner from 'component/spinner';
import Yrbl from 'component/yrbl'; import Yrbl from 'component/yrbl';
import LbcSymbol from 'component/common/lbc-symbol'; import LbcSymbol from 'component/common/lbc-symbol';
import * as PAGES from 'constants/pages'; import * as PAGES from 'constants/pages';
import HelpLink from 'component/common/help-link';
type Props = { type Props = {
channels: Array<ChannelClaim>, channels: Array<ChannelClaim>,
@ -81,7 +82,9 @@ export default function ChannelsPage(props: Props) {
if (channelRewardData) { if (channelRewardData) {
return ( return (
<span className="claim-preview__custom-properties"> <span className="claim-preview__custom-properties">
<span className="help--inline">{__('Earnings per view')}</span> <span className="help--inline">
{__('Earnings per view')} <HelpLink href="https://lbry.com/faq/view-rewards" />
</span>
<LbcSymbol postfix={channelRewardData.view_rate.toFixed(2)} /> <LbcSymbol postfix={channelRewardData.view_rate.toFixed(2)} />
</span> </span>
); );

View file

@ -234,6 +234,11 @@ textarea {
&:not(:last-child) { &:not(:last-child) {
margin-bottom: 0; margin-bottom: 0;
} }
.icon--help {
top: 3px;
margin-left: 2px;
}
} }
.help--card-actions { .help--card-actions {