sort props 💄
This commit is contained in:
parent
f59f7c5773
commit
4c42dedcad
@ -27,18 +27,18 @@ import styles from './list.css';
|
|||||||
class List extends Component {
|
class List extends Component {
|
||||||
static propTypes = {
|
static propTypes = {
|
||||||
accounts: PropTypes.object,
|
accounts: PropTypes.object,
|
||||||
walletsOwners: PropTypes.object,
|
|
||||||
balances: PropTypes.object,
|
balances: PropTypes.object,
|
||||||
link: PropTypes.string,
|
certifications: PropTypes.object.isRequired,
|
||||||
search: PropTypes.array,
|
|
||||||
empty: PropTypes.bool,
|
empty: PropTypes.bool,
|
||||||
|
link: PropTypes.string,
|
||||||
order: PropTypes.string,
|
order: PropTypes.string,
|
||||||
orderFallback: PropTypes.string,
|
orderFallback: PropTypes.string,
|
||||||
certifications: PropTypes.object.isRequired,
|
search: PropTypes.array,
|
||||||
|
walletsOwners: PropTypes.object,
|
||||||
|
|
||||||
handleAddSearchToken: PropTypes.func,
|
|
||||||
fetchCertifiers: PropTypes.func.isRequired,
|
fetchCertifiers: PropTypes.func.isRequired,
|
||||||
fetchCertifications: PropTypes.func.isRequired
|
fetchCertifications: PropTypes.func.isRequired,
|
||||||
|
handleAddSearchToken: PropTypes.func
|
||||||
};
|
};
|
||||||
|
|
||||||
render () {
|
render () {
|
||||||
@ -50,7 +50,7 @@ class List extends Component {
|
|||||||
}
|
}
|
||||||
|
|
||||||
componentWillMount () {
|
componentWillMount () {
|
||||||
const { fetchCertifiers, accounts, fetchCertifications } = this.props;
|
const { accounts, fetchCertifiers, fetchCertifications } = this.props;
|
||||||
fetchCertifiers();
|
fetchCertifiers();
|
||||||
for (let address in accounts) {
|
for (let address in accounts) {
|
||||||
fetchCertifications(address);
|
fetchCertifications(address);
|
||||||
@ -58,7 +58,7 @@ class List extends Component {
|
|||||||
}
|
}
|
||||||
|
|
||||||
renderAccounts () {
|
renderAccounts () {
|
||||||
const { accounts, balances, link, empty, handleAddSearchToken, walletsOwners } = this.props;
|
const { accounts, balances, empty, link, walletsOwners, handleAddSearchToken } = this.props;
|
||||||
|
|
||||||
if (empty) {
|
if (empty) {
|
||||||
return (
|
return (
|
||||||
|
Loading…
Reference in New Issue
Block a user