From 5078bd6699a0fb0f0d06c0ce0fe765a32567a1ce Mon Sep 17 00:00:00 2001 From: jessop Date: Sun, 22 Sep 2019 22:47:07 -0400 Subject: [PATCH] paginates transactions --- src/ui/component/common/file-exporter.jsx | 11 +- src/ui/component/transactionList/index.js | 11 +- src/ui/component/transactionList/view.jsx | 200 +++++++----------- .../component/transactionListTable/index.js | 27 +++ .../internal/transaction-list-item.jsx | 0 .../component/transactionListTable/view.jsx | 65 ++++++ src/ui/page/transactionHistory/index.js | 32 ++- src/ui/page/transactionHistory/view.jsx | 11 +- 8 files changed, 217 insertions(+), 140 deletions(-) create mode 100644 src/ui/component/transactionListTable/index.js rename src/ui/component/{transactionList => transactionListTable}/internal/transaction-list-item.jsx (100%) create mode 100644 src/ui/component/transactionListTable/view.jsx diff --git a/src/ui/component/common/file-exporter.jsx b/src/ui/component/common/file-exporter.jsx index 690319272..2969bc90c 100644 --- a/src/ui/component/common/file-exporter.jsx +++ b/src/ui/component/common/file-exporter.jsx @@ -17,6 +17,7 @@ type Props = { defaultPath?: string, filters: Array, onFileCreated?: string => void, + disabled: boolean, }; class FileExporter extends React.PureComponent { @@ -78,9 +79,15 @@ class FileExporter extends React.PureComponent { } render() { - const { label } = this.props; + const { label, disabled } = this.props; return ( -