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:
committed by
Jaco Greeff
parent
6098f008ce
commit
391f408653
@@ -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 } />
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user