From 53920b3472fd310dbdf9f0ee846dd42c7cd0e447 Mon Sep 17 00:00:00 2001 From: btzr-io Date: Fri, 23 Feb 2018 17:57:37 -0700 Subject: [PATCH] implement FileExporter in transactionList Ability to export wallet transactions to CSV format #976 --- src/renderer/component/file-exporter.js | 3 +-- src/renderer/component/transactionList/view.jsx | 3 ++- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/renderer/component/file-exporter.js b/src/renderer/component/file-exporter.js index 0754ed1a2..cb8e6eedc 100644 --- a/src/renderer/component/file-exporter.js +++ b/src/renderer/component/file-exporter.js @@ -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() { diff --git a/src/renderer/component/transactionList/view.jsx b/src/renderer/component/transactionList/view.jsx index 6824dd3f4..ed6b0f283 100644 --- a/src/renderer/component/transactionList/view.jsx +++ b/src/renderer/component/transactionList/view.jsx @@ -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 (
+ {Boolean(transactionList.length) && } {(transactionList.length || this.state.filter) && ( {__('Filter')}{' '}