Lidarr/frontend/src/Artist/NoArtist.js

52 lines
1.1 KiB
JavaScript
Raw Normal View History

import PropTypes from 'prop-types';
2017-09-04 02:20:56 +00:00
import React from 'react';
import Button from 'Components/Link/Button';
2020-09-07 01:33:10 +00:00
import { kinds } from 'Helpers/Props';
2017-09-04 02:20:56 +00:00
import styles from './NoArtist.css';
function NoArtist(props) {
const { totalItems } = props;
if (totalItems > 0) {
return (
<div>
<div className={styles.message}>
2020-06-27 21:51:59 +00:00
All artists are hidden due to the applied filter.
</div>
</div>
);
}
2017-09-04 02:20:56 +00:00
return (
<div>
<div className={styles.message}>
2020-02-09 19:15:43 +00:00
No artists found, to get started you'll want to add a new artist or album or add an existing library location (Root Folder) and update.
2017-09-04 02:20:56 +00:00
</div>
<div className={styles.buttonContainer}>
<Button
2020-02-09 19:15:43 +00:00
to="/settings/mediamanagement"
2017-09-04 02:20:56 +00:00
kind={kinds.PRIMARY}
>
2020-02-09 19:15:43 +00:00
Add Root Folder
2017-09-04 02:20:56 +00:00
</Button>
</div>
<div className={styles.buttonContainer}>
<Button
2019-12-16 21:21:32 +00:00
to="/add/search"
2017-09-04 02:20:56 +00:00
kind={kinds.PRIMARY}
>
Add New Artist
</Button>
</div>
</div>
);
}
NoArtist.propTypes = {
totalItems: PropTypes.number.isRequired
};
2017-09-04 02:20:56 +00:00
export default NoArtist;