implement FileExporter in transactionList
Ability to export wallet transactions to CSV format #976
This commit is contained in:
parent
f29a947c09
commit
53920b3472
2 changed files with 3 additions and 3 deletions
|
@ -12,7 +12,7 @@ class FileExporter extends React.PureComponent {
|
|||
data: PropTypes.array,
|
||||
type: PropTypes.oneOf(['json', 'csv']),
|
||||
title: PropTypes.string,
|
||||
initPath: PropTypes.string,
|
||||
defaultPath,: PropTypes.string,
|
||||
onFileCreated: PropTypes.func,
|
||||
};
|
||||
|
||||
|
@ -22,7 +22,6 @@ class FileExporter extends React.PureComponent {
|
|||
|
||||
constructor(props) {
|
||||
super(props);
|
||||
this._inputElem = null;
|
||||
}
|
||||
|
||||
componentWillMount() {
|
||||
|
|
|
@ -2,7 +2,7 @@ import React from 'react';
|
|||
import TransactionListItem from './internal/TransactionListItem';
|
||||
import FormField from 'component/formField';
|
||||
import Link from 'component/link';
|
||||
//import FileExporter from 'component/file-exporter.js';
|
||||
import FileExporter from 'component/file-exporter.js';
|
||||
import * as icons from 'constants/icons';
|
||||
import * as modals from 'constants/modal_types';
|
||||
|
||||
|
@ -44,6 +44,7 @@ class TransactionList extends React.PureComponent {
|
|||
|
||||
return (
|
||||
<div>
|
||||
{Boolean(transactionList.length) && <FileExporter data={transactions} title={__("Export Transactions")} />}
|
||||
{(transactionList.length || this.state.filter) && (
|
||||
<span className="sort-section">
|
||||
{__('Filter')}{' '}
|
||||
|
|
Loading…
Reference in a new issue