|
|
@ -1,5 +1,6 @@
|
|
|
|
import PropTypes from 'prop-types';
|
|
|
|
import PropTypes from 'prop-types';
|
|
|
|
import React from 'react';
|
|
|
|
import React from 'react';
|
|
|
|
|
|
|
|
import RelativeDateCellConnector from 'Components/Table/Cells/RelativeDateCellConnector';
|
|
|
|
import TableRowCell from 'Components/Table/Cells/TableRowCell';
|
|
|
|
import TableRowCell from 'Components/Table/Cells/TableRowCell';
|
|
|
|
import TableSelectCell from 'Components/Table/Cells/TableSelectCell';
|
|
|
|
import TableSelectCell from 'Components/Table/Cells/TableSelectCell';
|
|
|
|
import TableRow from 'Components/Table/TableRow';
|
|
|
|
import TableRow from 'Components/Table/TableRow';
|
|
|
@ -17,6 +18,9 @@ function CutoffUnmetRow(props) {
|
|
|
|
year,
|
|
|
|
year,
|
|
|
|
title,
|
|
|
|
title,
|
|
|
|
titleSlug,
|
|
|
|
titleSlug,
|
|
|
|
|
|
|
|
inCinemas,
|
|
|
|
|
|
|
|
digitalRelease,
|
|
|
|
|
|
|
|
physicalRelease,
|
|
|
|
isSelected,
|
|
|
|
isSelected,
|
|
|
|
columns,
|
|
|
|
columns,
|
|
|
|
onSelectedChange
|
|
|
|
onSelectedChange
|
|
|
@ -60,6 +64,36 @@ function CutoffUnmetRow(props) {
|
|
|
|
);
|
|
|
|
);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (name === 'movieMetadata.inCinemas') {
|
|
|
|
|
|
|
|
return (
|
|
|
|
|
|
|
|
<RelativeDateCellConnector
|
|
|
|
|
|
|
|
key={name}
|
|
|
|
|
|
|
|
className={styles[name]}
|
|
|
|
|
|
|
|
date={inCinemas}
|
|
|
|
|
|
|
|
/>
|
|
|
|
|
|
|
|
);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (name === 'movieMetadata.digitalRelease') {
|
|
|
|
|
|
|
|
return (
|
|
|
|
|
|
|
|
<RelativeDateCellConnector
|
|
|
|
|
|
|
|
key={name}
|
|
|
|
|
|
|
|
className={styles[name]}
|
|
|
|
|
|
|
|
date={digitalRelease}
|
|
|
|
|
|
|
|
/>
|
|
|
|
|
|
|
|
);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (name === 'movieMetadata.physicalRelease') {
|
|
|
|
|
|
|
|
return (
|
|
|
|
|
|
|
|
<RelativeDateCellConnector
|
|
|
|
|
|
|
|
key={name}
|
|
|
|
|
|
|
|
className={styles[name]}
|
|
|
|
|
|
|
|
date={physicalRelease}
|
|
|
|
|
|
|
|
/>
|
|
|
|
|
|
|
|
);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
if (name === 'languages') {
|
|
|
|
if (name === 'languages') {
|
|
|
|
return (
|
|
|
|
return (
|
|
|
|
<TableRowCell
|
|
|
|
<TableRowCell
|
|
|
@ -112,6 +146,9 @@ CutoffUnmetRow.propTypes = {
|
|
|
|
title: PropTypes.string.isRequired,
|
|
|
|
title: PropTypes.string.isRequired,
|
|
|
|
year: PropTypes.number.isRequired,
|
|
|
|
year: PropTypes.number.isRequired,
|
|
|
|
titleSlug: PropTypes.string.isRequired,
|
|
|
|
titleSlug: PropTypes.string.isRequired,
|
|
|
|
|
|
|
|
inCinemas: PropTypes.string,
|
|
|
|
|
|
|
|
digitalRelease: PropTypes.string,
|
|
|
|
|
|
|
|
physicalRelease: PropTypes.string,
|
|
|
|
isSelected: PropTypes.bool,
|
|
|
|
isSelected: PropTypes.bool,
|
|
|
|
columns: PropTypes.arrayOf(PropTypes.object).isRequired,
|
|
|
|
columns: PropTypes.arrayOf(PropTypes.object).isRequired,
|
|
|
|
onSelectedChange: PropTypes.func.isRequired
|
|
|
|
onSelectedChange: PropTypes.func.isRequired
|
|
|
|