From 9a5c2cde9b2ccc1beb50b3da201c743a7643b125 Mon Sep 17 00:00:00 2001 From: Lukewh Date: Fri, 14 Feb 2020 17:44:51 +0000 Subject: [PATCH] Download all transactions in CSV --- ui/component/transactionList/index.js | 2 ++ ui/component/transactionList/view.jsx | 15 +++++++++++++-- 2 files changed, 15 insertions(+), 2 deletions(-) diff --git a/ui/component/transactionList/index.js b/ui/component/transactionList/index.js index 0e7abc58d..f81337ee9 100644 --- a/ui/component/transactionList/index.js +++ b/ui/component/transactionList/index.js @@ -7,6 +7,7 @@ import { selectTransactionListFilter, doSetTransactionListFilter, selectIsFetchingTransactions, + selectTransactionItems, } from 'lbry-redux'; import { withRouter } from 'react-router'; import TransactionList from './view'; @@ -17,6 +18,7 @@ const select = state => ({ myClaims: selectAllMyClaimsByOutpoint(state), filterSetting: selectTransactionListFilter(state), loading: selectIsFetchingTransactions(state), + allTransactions: selectTransactionItems(state), }); const perform = dispatch => ({ diff --git a/ui/component/transactionList/view.jsx b/ui/component/transactionList/view.jsx index fe4e68808..22194cb6e 100644 --- a/ui/component/transactionList/view.jsx +++ b/ui/component/transactionList/view.jsx @@ -18,13 +18,24 @@ type Props = { setTransactionFilter: string => void, slim?: boolean, title: string, + allTransactions: Array, transactions: Array, transactionCount?: number, history: { replace: string => void }, }; function TransactionList(props: Props) { - const { emptyMessage, slim, filterSetting, title, transactions, loading, history, transactionCount } = props; + const { + emptyMessage, + slim, + filterSetting, + title, + transactions, + loading, + history, + transactionCount, + allTransactions, + } = props; // Flow offers little support for Object.values() typing. // https://github.com/facebook/flow/issues/2221 // $FlowFixMe @@ -49,7 +60,7 @@ function TransactionList(props: Props) { {/* @if TARGET='app' */} {!slim && (