diff --git a/frontend/src/Series/Details/SeriesDetailsLinks.js b/frontend/src/Series/Details/SeriesDetailsLinks.tsx similarity index 50% rename from frontend/src/Series/Details/SeriesDetailsLinks.js rename to frontend/src/Series/Details/SeriesDetailsLinks.tsx index 1aa67f297..b2a725a68 100644 --- a/frontend/src/Series/Details/SeriesDetailsLinks.js +++ b/frontend/src/Series/Details/SeriesDetailsLinks.tsx @@ -1,23 +1,23 @@ -import PropTypes from 'prop-types'; import React from 'react'; import Label from 'Components/Label'; import Link from 'Components/Link/Link'; import { kinds, sizes } from 'Helpers/Props'; +import Series from 'Series/Series'; import styles from './SeriesDetailsLinks.css'; -function SeriesDetailsLinks(props) { - const { - tvdbId, - tvMazeId, - imdbId, - tmdbId - } = props; +type SeriesDetailsLinksProps = Pick< + Series, + 'tvdbId' | 'tvMazeId' | 'imdbId' | 'tmdbId' +>; + +function SeriesDetailsLinks(props: SeriesDetailsLinksProps) { + const { tvdbId, tvMazeId, imdbId, tmdbId } = props; return (