|
|
@ -1,5 +1,5 @@
|
|
|
|
import PropTypes from 'prop-types';
|
|
|
|
import PropTypes from 'prop-types';
|
|
|
|
import React from 'react';
|
|
|
|
import React, { PureComponent } from 'react';
|
|
|
|
import classNames from 'classnames';
|
|
|
|
import classNames from 'classnames';
|
|
|
|
import formatBytes from 'Utilities/Number/formatBytes';
|
|
|
|
import formatBytes from 'Utilities/Number/formatBytes';
|
|
|
|
import { ColorImpairedConsumer } from 'App/ColorImpairedContext';
|
|
|
|
import { ColorImpairedConsumer } from 'App/ColorImpairedContext';
|
|
|
@ -7,7 +7,13 @@ import DescriptionList from 'Components/DescriptionList/DescriptionList';
|
|
|
|
import DescriptionListItem from 'Components/DescriptionList/DescriptionListItem';
|
|
|
|
import DescriptionListItem from 'Components/DescriptionList/DescriptionListItem';
|
|
|
|
import styles from './ArtistIndexFooter.css';
|
|
|
|
import styles from './ArtistIndexFooter.css';
|
|
|
|
|
|
|
|
|
|
|
|
function ArtistIndexFooter({ artist }) {
|
|
|
|
class ArtistIndexFooter extends PureComponent {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//
|
|
|
|
|
|
|
|
// Render
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
render() {
|
|
|
|
|
|
|
|
const { artist } = this.props;
|
|
|
|
const count = artist.length;
|
|
|
|
const count = artist.length;
|
|
|
|
let tracks = 0;
|
|
|
|
let tracks = 0;
|
|
|
|
let trackFiles = 0;
|
|
|
|
let trackFiles = 0;
|
|
|
@ -142,6 +148,7 @@ function ArtistIndexFooter({ artist }) {
|
|
|
|
}}
|
|
|
|
}}
|
|
|
|
</ColorImpairedConsumer>
|
|
|
|
</ColorImpairedConsumer>
|
|
|
|
);
|
|
|
|
);
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
ArtistIndexFooter.propTypes = {
|
|
|
|
ArtistIndexFooter.propTypes = {
|
|
|
|