mirror of
https://github.com/Readarr/Readarr.git
synced 2026-04-20 21:54:25 -04:00
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user