Display local/completed transactions (#3630)

* Initial fetch of local transactions

* Container allows for title specification

* Introduce TxList component

* Display local transactions in signer list

* Simplify

* Pass only hashes from calling components

* Simplify no pending display

* Render pending blocks at the top

* Get rid of time for 0 blocks

* Indeed sort Pending to the top

* Allow retrieval of pending transactions

* setTimeout with clearTimeout
This commit is contained in:
Jaco Greeff
2016-11-29 13:50:09 +01:00
committed by GitHub
parent a578e10c49
commit 5e8f6f271d
12 changed files with 499 additions and 361 deletions

View File

@@ -17,6 +17,8 @@
import React, { Component, PropTypes } from 'react';
import { Card } from 'material-ui/Card';
import Title from './Title';
import styles from './container.css';
export default class Container extends Component {
@@ -25,7 +27,10 @@ export default class Container extends Component {
className: PropTypes.string,
compact: PropTypes.bool,
light: PropTypes.bool,
style: PropTypes.object
style: PropTypes.object,
title: PropTypes.oneOfType([
PropTypes.string, PropTypes.node
])
}
render () {
@@ -35,9 +40,22 @@ export default class Container extends Component {
return (
<div className={ classes } style={ style }>
<Card className={ compact ? styles.compact : styles.padded }>
{ this.renderTitle() }
{ children }
</Card>
</div>
);
}
renderTitle () {
const { title } = this.props;
if (!title) {
return null;
}
return (
<Title title={ title } />
);
}
}