Fixed: Don't use "Ended" for people

Fixes #798
This commit is contained in:
Qstick 2019-05-09 19:46:38 -04:00
parent b2d87cccb2
commit 4a8d01f33e
5 changed files with 16 additions and 3 deletions

View file

@ -8,12 +8,15 @@ import styles from './ArtistStatusCell.css';
function ArtistStatusCell(props) {
const {
className,
artistType,
monitored,
status,
component: Component,
...otherProps
} = props;
const endedString = artistType === 'Person' ? 'Deceased' : 'Ended';
return (
<Component
className={className}
@ -28,7 +31,7 @@ function ArtistStatusCell(props) {
<Icon
className={styles.statusIcon}
name={status === 'ended' ? icons.ARTIST_ENDED : icons.ARTIST_CONTINUING}
title={status === 'ended' ? 'Ended' : 'Continuing'}
title={status === 'ended' ? endedString : 'Continuing'}
/>
</Component>
);
@ -36,6 +39,7 @@ function ArtistStatusCell(props) {
ArtistStatusCell.propTypes = {
className: PropTypes.string.isRequired,
artistType: PropTypes.string.isRequired,
monitored: PropTypes.bool.isRequired,
status: PropTypes.string.isRequired,
component: PropTypes.func