From e4bcca521c882852eddcf0bf0f9dbe729565354d Mon Sep 17 00:00:00 2001 From: Travis Eden Date: Fri, 13 Jul 2018 14:06:33 -0400 Subject: [PATCH 1/2] add abandon to transaction list filter --- src/renderer/component/transactionList/view.jsx | 1 + 1 file changed, 1 insertion(+) diff --git a/src/renderer/component/transactionList/view.jsx b/src/renderer/component/transactionList/view.jsx index 0ab002bee..150991e22 100644 --- a/src/renderer/component/transactionList/view.jsx +++ b/src/renderer/component/transactionList/view.jsx @@ -115,6 +115,7 @@ class TransactionList extends React.PureComponent { + )} -- 2.45.3 From 7e5cc1c3ca5e40710edef1adb29c24d2a9689e02 Mon Sep 17 00:00:00 2001 From: Travis Eden Date: Tue, 17 Jul 2018 13:17:11 -0400 Subject: [PATCH 2/2] use constants for transaction types --- .../component/transactionList/view.jsx | 38 ++++++++++++++----- 1 file changed, 29 insertions(+), 9 deletions(-) diff --git a/src/renderer/component/transactionList/view.jsx b/src/renderer/component/transactionList/view.jsx index 150991e22..c498a19b5 100644 --- a/src/renderer/component/transactionList/view.jsx +++ b/src/renderer/component/transactionList/view.jsx @@ -4,7 +4,7 @@ import { FormField } from 'component/common/form'; import Button from 'component/button'; import FileExporter from 'component/common/file-exporter'; import * as icons from 'constants/icons'; -import { MODALS } from 'lbry-redux'; +import { MODALS, TRANSACTIONS } from 'lbry-redux'; import TransactionListItem from './internal/transaction-list-item'; export type Transaction = { @@ -45,6 +45,10 @@ class TransactionList extends React.PureComponent { (this: any).isRevokeable = this.isRevokeable.bind(this); } + capitalize(string: string) { + return string.charAt(0).toUpperCase() + string.slice(1); + } + handleFilterChanged(event: SyntheticInputEvent<*>) { this.setState({ filter: event.target.value, @@ -108,14 +112,30 @@ class TransactionList extends React.PureComponent { } > - - - - - - - - + + + + + + + + )} -- 2.45.3