const type = 'transaction'
-
class List extends React.Component {
componentWillReceiveProps(nextProps) {
if (nextProps.blockHeight != this.props.blockHeight) {
}
render() {
const ItemList = BaseList.ItemList
- //pagination create
- let pagination = null
- if(!this.props.noResults){
- pagination = <Pagination
- currentPage={this.props.currentPage}
- isLastPage={this.props.isLastPage}
- pushList={this.props.pushList}/>
- }
-
return <div>
<ItemList {...this.props}/>
- {pagination}
+ {!this.props.noResults && <Pagination
+ currentPage={this.props.currentPage}
+ isLastPage={this.props.isLastPage}
+ pushList={this.props.pushList}/>}
</div>
}
}
)
return {
- query: (params, cb) => shared.query(client, 'transactions', '/list-transactions', params, {cb}),
+ query: (params, cb) => shared.query(client, 'transactions', '/list-transactions',
+ Object.assign({}, params, {detail: true}),
+ {cb}),
queryAll: (params, processor, cb) => shared.queryAll(client, 'transactions', params, processor, cb),