From 44f962fe2ace50128121228ebc6a213317dc9e5e Mon Sep 17 00:00:00 2001 From: hackrush Date: Fri, 20 Oct 2017 18:31:54 +0530 Subject: [PATCH] Rewards marked in txn list --- CHANGELOG.md | 2 +- ui/js/component/transactionList/index.js | 2 +- .../transactionList/internal/TransactionListItem.jsx | 6 +++++- 3 files changed, 7 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index a29075676..ca0ac67d6 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -9,10 +9,10 @@ Web UI version numbers should always match the corresponding version of LBRY App ## [Unreleased] ### Added * Added new window menu options for reloading and help. + * Rewards are now marked in transaction history (#660) * ### Changed - * * Replaced all instances of `XMLHttpRequest` with native `Fetch` API. * diff --git a/ui/js/component/transactionList/index.js b/ui/js/component/transactionList/index.js index 5a6c10b6b..f6ffc976d 100644 --- a/ui/js/component/transactionList/index.js +++ b/ui/js/component/transactionList/index.js @@ -12,4 +12,4 @@ const perform = dispatch => ({ navigate: (path, params) => dispatch(doNavigate(path, params)), }); -export default connect(null, perform)(TransactionList); +export default connect(select, perform)(TransactionList); diff --git a/ui/js/component/transactionList/internal/TransactionListItem.jsx b/ui/js/component/transactionList/internal/TransactionListItem.jsx index fd4429bd3..22b35cb12 100644 --- a/ui/js/component/transactionList/internal/TransactionListItem.jsx +++ b/ui/js/component/transactionList/internal/TransactionListItem.jsx @@ -6,6 +6,10 @@ import Link from "component/link"; import lbryuri from "lbryuri"; class TransactionListItem extends React.PureComponent { + capitalize(string) { + return string.charAt(0).toUpperCase() + string.slice(1); + } + render() { const { reward, transaction } = this.props; const { @@ -60,7 +64,7 @@ class TransactionListItem extends React.PureComponent { />} - {type} + {this.capitalize(type)} {reward && -- 2.45.2