New: Digital Release Dates in UI

This commit is contained in:
Qstick
2020-07-07 09:27:14 -04:00
parent 88bda6bcb6
commit 3a50152b21
12 changed files with 167 additions and 1 deletions

View File

@@ -72,6 +72,7 @@ class MovieIndexRow extends Component {
year,
inCinemas,
physicalRelease,
digitalRelease,
runtime,
minimumAvailability,
path,
@@ -225,6 +226,17 @@ class MovieIndexRow extends Component {
);
}
if (name === 'digitalRelease') {
return (
<RelativeDateCellConnector
key={name}
className={styles[name]}
date={digitalRelease}
component={VirtualTableRowCell}
/>
);
}
if (name === 'runtime') {
return (
<VirtualTableRowCell
@@ -401,6 +413,7 @@ MovieIndexRow.propTypes = {
year: PropTypes.number,
inCinemas: PropTypes.string,
physicalRelease: PropTypes.string,
digitalRelease: PropTypes.string,
runtime: PropTypes.number,
minimumAvailability: PropTypes.string.isRequired,
path: PropTypes.string.isRequired,