Formatted changes via prettier

This commit is contained in:
liamcardenas 2018-03-15 11:27:47 -07:00
parent b3ccfc4f19
commit a6ab95105a

View file

@ -13,7 +13,9 @@ class FileList extends React.PureComponent {
}; };
this._sortFunctions = { this._sortFunctions = {
dateNew: fileInfos => this.props.sortByHeight ? fileInfos.slice().sort((fileInfo1, fileInfo2) => { dateNew: fileInfos =>
this.props.sortByHeight
? fileInfos.slice().sort((fileInfo1, fileInfo2) => {
const height1 = this.props.claimsById[fileInfo1.claim_id] const height1 = this.props.claimsById[fileInfo1.claim_id]
? this.props.claimsById[fileInfo1.claim_id].height ? this.props.claimsById[fileInfo1.claim_id].height
: 0; : 0;
@ -26,8 +28,11 @@ class FileList extends React.PureComponent {
return 1; return 1;
} }
return 0; return 0;
}) : [...fileInfos].reverse(), })
dateOld: fileInfos => this.props.sortByHeight ? fileInfos.slice().sort((fileInfo1, fileInfo2) => { : [...fileInfos].reverse(),
dateOld: fileInfos =>
this.props.sortByHeight
? fileInfos.slice().sort((fileInfo1, fileInfo2) => {
const height1 = this.props.claimsById[fileInfo1.claim_id] const height1 = this.props.claimsById[fileInfo1.claim_id]
? this.props.claimsById[fileInfo1.claim_id].height ? this.props.claimsById[fileInfo1.claim_id].height
: 999999; : 999999;
@ -40,7 +45,8 @@ class FileList extends React.PureComponent {
return 1; return 1;
} }
return 0; return 0;
}) : fileInfos, })
: fileInfos,
title: fileInfos => title: fileInfos =>
fileInfos.slice().sort((fileInfo1, fileInfo2) => { fileInfos.slice().sort((fileInfo1, fileInfo2) => {
const title1 = fileInfo1.value const title1 = fileInfo1.value