mirror of
https://github.com/lidarr/lidarr.git
synced 2025-07-16 10:03:51 -07:00
parent
b2d87cccb2
commit
4a8d01f33e
5 changed files with 16 additions and 3 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue