Rewards marked in txn list

This commit is contained in:
hackrush 2017-10-20 18:31:54 +05:30 committed by Jeremy Kauffman
parent 8f1e2ea72b
commit 44f962fe2a
3 changed files with 7 additions and 3 deletions

View file

@ -9,10 +9,10 @@ Web UI version numbers should always match the corresponding version of LBRY App
## [Unreleased] ## [Unreleased]
### Added ### Added
* Added new window menu options for reloading and help. * Added new window menu options for reloading and help.
* Rewards are now marked in transaction history (#660)
* *
### Changed ### Changed
*
* Replaced all instances of `XMLHttpRequest` with native `Fetch` API. * Replaced all instances of `XMLHttpRequest` with native `Fetch` API.
* *

View file

@ -12,4 +12,4 @@ const perform = dispatch => ({
navigate: (path, params) => dispatch(doNavigate(path, params)), navigate: (path, params) => dispatch(doNavigate(path, params)),
}); });
export default connect(null, perform)(TransactionList); export default connect(select, perform)(TransactionList);

View file

@ -6,6 +6,10 @@ import Link from "component/link";
import lbryuri from "lbryuri"; import lbryuri from "lbryuri";
class TransactionListItem extends React.PureComponent { class TransactionListItem extends React.PureComponent {
capitalize(string) {
return string.charAt(0).toUpperCase() + string.slice(1);
}
render() { render() {
const { reward, transaction } = this.props; const { reward, transaction } = this.props;
const { const {
@ -60,7 +64,7 @@ class TransactionListItem extends React.PureComponent {
/>} />}
</td> </td>
<td> <td>
{type} {this.capitalize(type)}
</td> </td>
<td> <td>
{reward && {reward &&