[UI Work] Misc UI Fixes and Tweaks

This commit is contained in:
Qstick
2017-09-16 16:22:06 -04:00
parent 2a6decdc4c
commit 44cc642ad4
80 changed files with 267 additions and 349 deletions
@@ -6,7 +6,6 @@ import styles from './ArtistIndexPosterInfo.css';
function ArtistIndexPosterInfo(props) {
const {
network,
qualityProfile,
previousAiring,
added,
@@ -19,14 +18,6 @@ function ArtistIndexPosterInfo(props) {
timeFormat
} = props;
if (sortKey === 'network' && network) {
return (
<div className={styles.info}>
{network}
</div>
);
}
if (sortKey === 'qualityProfileId') {
return (
<div className={styles.info}>
@@ -72,17 +63,17 @@ function ArtistIndexPosterInfo(props) {
}
if (sortKey === 'albumCount') {
let seasons = '1 season';
let albums = '1 album';
if (albumCount === 0) {
seasons = 'No seasons';
albums = 'No albums';
} else if (albumCount > 1) {
seasons = `${albumCount} seasons`;
albums = `${albumCount} albums`;
}
return (
<div className={styles.info}>
{seasons}
{albums}
</div>
);
}
@@ -107,7 +98,6 @@ function ArtistIndexPosterInfo(props) {
}
ArtistIndexPosterInfo.propTypes = {
network: PropTypes.string,
qualityProfile: PropTypes.object.isRequired,
previousAiring: PropTypes.string,
added: PropTypes.string,