|
|
|
@ -1,11 +1,14 @@
|
|
|
|
|
import PropTypes from 'prop-types';
|
|
|
|
|
import React from 'react';
|
|
|
|
|
import Button from 'Components/Link/Button';
|
|
|
|
|
import { kinds } from 'Helpers/Props';
|
|
|
|
|
import translate from 'Utilities/String/translate';
|
|
|
|
|
import styles from './NoSeries.css';
|
|
|
|
|
|
|
|
|
|
function NoSeries(props) {
|
|
|
|
|
interface NoSeriesProps {
|
|
|
|
|
totalItems: number;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
function NoSeries(props: NoSeriesProps) {
|
|
|
|
|
const { totalItems } = props;
|
|
|
|
|
|
|
|
|
|
if (totalItems > 0) {
|
|
|
|
@ -25,19 +28,13 @@ function NoSeries(props) {
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<div className={styles.buttonContainer}>
|
|
|
|
|
<Button
|
|
|
|
|
to="/add/import"
|
|
|
|
|
kind={kinds.PRIMARY}
|
|
|
|
|
>
|
|
|
|
|
<Button to="/add/import" kind={kinds.PRIMARY}>
|
|
|
|
|
{translate('ImportExistingSeries')}
|
|
|
|
|
</Button>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<div className={styles.buttonContainer}>
|
|
|
|
|
<Button
|
|
|
|
|
to="/add/new"
|
|
|
|
|
kind={kinds.PRIMARY}
|
|
|
|
|
>
|
|
|
|
|
<Button to="/add/new" kind={kinds.PRIMARY}>
|
|
|
|
|
{translate('AddNewSeries')}
|
|
|
|
|
</Button>
|
|
|
|
|
</div>
|
|
|
|
@ -45,8 +42,4 @@ function NoSeries(props) {
|
|
|
|
|
);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
NoSeries.propTypes = {
|
|
|
|
|
totalItems: PropTypes.number.isRequired
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
export default NoSeries;
|