diff --git a/frontend/src/Series/NoSeries.js b/frontend/src/Series/NoSeries.tsx similarity index 73% rename from frontend/src/Series/NoSeries.js rename to frontend/src/Series/NoSeries.tsx index da526c644..54053ad9e 100644 --- a/frontend/src/Series/NoSeries.js +++ b/frontend/src/Series/NoSeries.tsx @@ -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) {
-
-
@@ -45,8 +42,4 @@ function NoSeries(props) { ); } -NoSeries.propTypes = { - totalItems: PropTypes.number.isRequired -}; - export default NoSeries;