Rewards marked in txn list #691

Merged
hackrush01 merged 1 commit from rewards_tx_list into master 2017-10-27 23:30:41 +02:00
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]
### 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.
*

View file

@ -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);

View file

@ -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 {
/>}
</td>
<td>
{type}
{this.capitalize(type)}
</td>
<td>
{reward &&