update component
This commit is contained in:
parent
45209c5a91
commit
006c2f01fa
2 changed files with 7 additions and 2 deletions
|
@ -64,7 +64,7 @@ class FileExporter extends React.PureComponent {
|
||||||
const { title, label } = this.props;
|
const { title, label } = this.props;
|
||||||
return (
|
return (
|
||||||
<Link
|
<Link
|
||||||
button="alt"
|
button="primary"
|
||||||
icon={icons.DOWNLOAD}
|
icon={icons.DOWNLOAD}
|
||||||
title={title || __('Export')}
|
title={title || __('Export')}
|
||||||
label={label || __('Export')}
|
label={label || __('Export')}
|
||||||
|
|
|
@ -44,7 +44,12 @@ class TransactionList extends React.PureComponent {
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div>
|
<div>
|
||||||
{Boolean(transactionList.length) && <FileExporter data={transactions} title={__("Export Transactions")} />}
|
{Boolean(transactionList.length) && (
|
||||||
|
<FileExporter
|
||||||
|
data={transactions}
|
||||||
|
title={__("Export Transactions")}
|
||||||
|
label={__("Export")} />
|
||||||
|
)}
|
||||||
{(transactionList.length || this.state.filter) && (
|
{(transactionList.length || this.state.filter) && (
|
||||||
<span className="sort-section">
|
<span className="sort-section">
|
||||||
{__('Filter')}{' '}
|
{__('Filter')}{' '}
|
||||||
|
|
Loading…
Reference in a new issue