|
|
@ -1,6 +1,7 @@ |
|
|
|
import React from 'react'; |
|
|
|
import { translate } from '../../translate/translate'; |
|
|
|
import { secondsToString } from '../../util/time'; |
|
|
|
import { sortByDate } from '../../util/sort'; |
|
|
|
import { toggleDashboardTxInfoModal } from '../../actions/actionCreators'; |
|
|
|
import Store from '../../store'; |
|
|
|
|
|
|
@ -31,7 +32,7 @@ class WalletsNativeTxHistory extends React.Component { |
|
|
|
this.setState({ |
|
|
|
[e.target.name]: e.target.value, |
|
|
|
activePage: 1, |
|
|
|
itemsList: historyToSplit, |
|
|
|
itemsList: sortByDate(historyToSplit), |
|
|
|
}); |
|
|
|
} |
|
|
|
|
|
|
@ -85,7 +86,7 @@ class WalletsNativeTxHistory extends React.Component { |
|
|
|
historyToSplit = historyToSplit.slice((this.state.activePage - 1) * this.state.itemsPerPage, this.state.activePage * this.state.itemsPerPage); |
|
|
|
|
|
|
|
this.setState(Object.assign({}, this.state, { |
|
|
|
itemsList: historyToSplit, |
|
|
|
itemsList: sortByDate(historyToSplit), |
|
|
|
})); |
|
|
|
} |
|
|
|
} |
|
|
@ -97,7 +98,7 @@ class WalletsNativeTxHistory extends React.Component { |
|
|
|
|
|
|
|
this.setState(Object.assign({}, this.state, { |
|
|
|
activePage: page, |
|
|
|
itemsList: historyToSplit, |
|
|
|
itemsList: sortByDate(historyToSplit), |
|
|
|
})); |
|
|
|
} |
|
|
|
|
|
|
|