move help link on txo page

This commit is contained in:
jessop 2020-04-21 10:18:54 -04:00 committed by Sean Yesmunt
parent d480b14830
commit 4453e2105c
2 changed files with 8 additions and 10 deletions

View file

@ -3,7 +3,6 @@ import * as MODALS from 'constants/modal_types';
import React from 'react'; import React from 'react';
import TxoListItem from './internal/txo-list-item'; import TxoListItem from './internal/txo-list-item';
import Spinner from 'component/spinner'; import Spinner from 'component/spinner';
import HelpLink from 'component/common/help-link';
type Props = { type Props = {
emptyMessage: ?string, emptyMessage: ?string,
@ -34,14 +33,7 @@ function TransactionListTable(props: Props) {
<thead> <thead>
<tr> <tr>
<th>{__('Date')}</th> <th>{__('Date')}</th>
<th> <th>{<>{__('Type')}</>}</th>
{
<>
{__('Type')}
<HelpLink href="https://lbry.com/faq/transaction-types" />
</>
}
</th>
<th>{__('Details')} </th> <th>{__('Details')} </th>
<th>{__('Transaction')}</th> <th>{__('Transaction')}</th>
<th className="table__item--align-right">{__('Amount (LBC)')}</th> <th className="table__item--align-right">{__('Amount (LBC)')}</th>

View file

@ -9,6 +9,7 @@ import Button from 'component/button';
import Card from 'component/common/card'; import Card from 'component/common/card';
import { toCapitalCase } from 'util/string'; import { toCapitalCase } from 'util/string';
import classnames from 'classnames'; import classnames from 'classnames';
import HelpLink from 'component/common/help-link';
type Props = { type Props = {
search: string, search: string,
@ -186,7 +187,12 @@ function TxoList(props: Props) {
<FormField <FormField
type="select" type="select"
name="type" name="type"
label={__('Type')} label={
<>
{__('Type')}
<HelpLink href="https://lbry.com/faq/transaction-types" />
</>
}
value={type || 'all'} value={type || 'all'}
onChange={e => handleChange({ dkey: TXO.TYPE, value: e.target.value })} onChange={e => handleChange({ dkey: TXO.TYPE, value: e.target.value })}
> >