add wallet server help text

This commit is contained in:
Sean Yesmunt 2019-12-19 01:05:06 -05:00
parent 0d96830270
commit 8331e0ecf9

View file

@ -3,6 +3,7 @@
import React, { useState, useEffect, useRef } from 'react';
import { FormField } from 'component/common/form';
import Button from 'component/button';
import I18nMessage from 'component/i18nMessage';
import * as ICONS from 'constants/icons';
import ServerInputRow from './internal/inputRow';
@ -22,6 +23,14 @@ type ServerTuple = [string, string]; // ['host', 'port']
type ServerStatus = Array<StatusOfServer>;
type ServerConfig = Array<ServerTuple>;
type DaemonSettings = {
lbryum_servers: ServerConfig,
};
type DaemonStatus = {
wallet: any,
};
type Props = {
getDaemonStatus: () => void,
setCustomWalletServers: any => void,
@ -140,6 +149,16 @@ function SettingWalletServer(props: Props) {
}}
label={__('Use custom wallet servers')}
/>
<p className="help">
<I18nMessage
tokens={{
help_link: <Button button="link" href="http://lbry.com/faq/wallet-servers" label={__('Learn More')} />,
}}
>
Wallet servers control what content is trending, ..., idk. %help_link%.
</I18nMessage>
</p>
{advancedMode && (
<div>
{serverConfig &&