diff --git a/frontend/src/InteractiveImport/Series/SelectSeriesModalContent.tsx b/frontend/src/InteractiveImport/Series/SelectSeriesModalContent.tsx index f13797153..7f68736b3 100644 --- a/frontend/src/InteractiveImport/Series/SelectSeriesModalContent.tsx +++ b/frontend/src/InteractiveImport/Series/SelectSeriesModalContent.tsx @@ -66,7 +66,7 @@ interface RowItemData { } function Row({ index, style, data }: ListChildComponentProps) { - const { items, columns, onSeriesSelect } = data; + const { items, onSeriesSelect } = data; const series = index >= items.length ? null : items[index]; const handlePress = useCallback(() => { @@ -90,13 +90,10 @@ function Row({ index, style, data }: ListChildComponentProps) { > ); diff --git a/frontend/src/InteractiveImport/Series/SelectSeriesRow.js b/frontend/src/InteractiveImport/Series/SelectSeriesRow.js deleted file mode 100644 index ce9d01f1b..000000000 --- a/frontend/src/InteractiveImport/Series/SelectSeriesRow.js +++ /dev/null @@ -1,55 +0,0 @@ -import PropTypes from 'prop-types'; -import React, { Component } from 'react'; -import Label from 'Components/Label'; -import VirtualTableRowCell from 'Components/Table/Cells/VirtualTableRowCell'; -import styles from './SelectSeriesRow.css'; - -class SelectSeriesRow extends Component { - - // - // Listeners - - onPress = () => { - this.props.onSeriesSelect(this.props.id); - }; - - // - // Render - - render() { - return ( - <> - - {this.props.title} - - - - {this.props.year} - - - - - - - - { - this.props.imdbId ? - : - null - } - - - ); - } -} - -SelectSeriesRow.propTypes = { - id: PropTypes.number.isRequired, - title: PropTypes.string.isRequired, - tvdbId: PropTypes.number.isRequired, - imdbId: PropTypes.string, - year: PropTypes.number.isRequired, - onSeriesSelect: PropTypes.func.isRequired -}; - -export default SelectSeriesRow; diff --git a/frontend/src/InteractiveImport/Series/SelectSeriesRow.tsx b/frontend/src/InteractiveImport/Series/SelectSeriesRow.tsx new file mode 100644 index 000000000..e224ed89a --- /dev/null +++ b/frontend/src/InteractiveImport/Series/SelectSeriesRow.tsx @@ -0,0 +1,38 @@ +import React from 'react'; +import Label from 'Components/Label'; +import VirtualTableRowCell from 'Components/Table/Cells/VirtualTableRowCell'; +import styles from './SelectSeriesRow.css'; + +interface SelectSeriesRowProps { + title: string; + tvdbId: number; + imdbId?: string; + year: number; +} + +function SelectSeriesRow({ + title, + year, + tvdbId, + imdbId, +}: SelectSeriesRowProps) { + return ( + <> + + {title} + + + {year} + + + + + + + {imdbId ? : null} + + + ); +} + +export default SelectSeriesRow;