Sort by ETH balance and contract by date (#3107)

* Added timestamps to contract creation // Sort by date (#3070)

* Added sort by ETH balance (#3070)

* Added timestamp meta to accounts / addresses entry creations (#3107)
This commit is contained in:
Nicolas Gotchac
2016-11-02 23:09:00 +01:00
committed by Jaco Greeff
parent 6098f008ce
commit 391f408653
8 changed files with 147 additions and 26 deletions

View File

@@ -42,7 +42,7 @@ class Contracts extends Component {
state = {
addContract: false,
deployContract: false,
sortOrder: '',
sortOrder: 'timestamp',
searchValues: [],
searchTokens: []
}
@@ -65,6 +65,7 @@ class Contracts extends Component {
balances={ balances }
empty={ !hasContracts }
order={ sortOrder }
orderFallback='name'
handleAddSearchToken={ this.onAddSearchToken } />
</Page>
</div>
@@ -80,6 +81,10 @@ class Contracts extends Component {
<ActionbarSort
key='sortAccounts'
order={ this.state.sortOrder }
metas={ [
{ key: 'timestamp', label: 'date' }
] }
showDefault={ false }
onChange={ onChange } />
);
}