More UI Cleanup

This commit is contained in:
Qstick
2017-10-07 18:38:31 -04:00
parent 9c88c2006d
commit 1700c471b7
96 changed files with 267 additions and 333 deletions
@@ -4,15 +4,15 @@ import DescriptionList from 'Components/DescriptionList/DescriptionList';
import DescriptionListItem from 'Components/DescriptionList/DescriptionListItem';
import styles from './ArtistIndexFooter.css';
function ArtistIndexFooter({ series }) {
const count = series.length;
function ArtistIndexFooter({ artist }) {
const count = artist.length;
let tracks = 0;
let trackFiles = 0;
let ended = 0;
let continuing = 0;
let monitored = 0;
series.forEach((s) => {
artist.forEach((s) => {
tracks += s.trackCount || 0;
trackFiles += s.trackFileCount || 0;
@@ -98,7 +98,7 @@ function ArtistIndexFooter({ series }) {
}
ArtistIndexFooter.propTypes = {
series: PropTypes.arrayOf(PropTypes.object).isRequired
artist: PropTypes.arrayOf(PropTypes.object).isRequired
};
export default ArtistIndexFooter;