|
|
@ -1,6 +1,7 @@
|
|
|
|
import _ from 'lodash';
|
|
|
|
import _ from 'lodash';
|
|
|
|
import PropTypes from 'prop-types';
|
|
|
|
import PropTypes from 'prop-types';
|
|
|
|
import React, { Component } from 'react';
|
|
|
|
import React, { Component } from 'react';
|
|
|
|
|
|
|
|
import { Tab, Tabs, TabList, TabPanel } from 'react-tabs';
|
|
|
|
import TextTruncate from 'react-text-truncate';
|
|
|
|
import TextTruncate from 'react-text-truncate';
|
|
|
|
import formatBytes from 'Utilities/Number/formatBytes';
|
|
|
|
import formatBytes from 'Utilities/Number/formatBytes';
|
|
|
|
import selectAll from 'Utilities/Table/selectAll';
|
|
|
|
import selectAll from 'Utilities/Table/selectAll';
|
|
|
@ -39,7 +40,6 @@ import InteractiveSearchTable from 'InteractiveSearch/InteractiveSearchTable';
|
|
|
|
import InteractiveSearchFilterMenuConnector from 'InteractiveSearch/InteractiveSearchFilterMenuConnector';
|
|
|
|
import InteractiveSearchFilterMenuConnector from 'InteractiveSearch/InteractiveSearchFilterMenuConnector';
|
|
|
|
// import MovieTagsConnector from './MovieTagsConnector';
|
|
|
|
// import MovieTagsConnector from './MovieTagsConnector';
|
|
|
|
import styles from './MovieDetails.css';
|
|
|
|
import styles from './MovieDetails.css';
|
|
|
|
import { Tab, Tabs, TabList, TabPanel } from 'react-tabs';
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
const defaultFontSize = parseInt(fonts.defaultFontSize);
|
|
|
|
const defaultFontSize = parseInt(fonts.defaultFontSize);
|
|
|
|
const lineHeight = parseFloat(fonts.lineHeight);
|
|
|
|
const lineHeight = parseFloat(fonts.lineHeight);
|
|
|
@ -327,9 +327,12 @@ class MovieDetails extends Component {
|
|
|
|
|
|
|
|
|
|
|
|
<div className={styles.details}>
|
|
|
|
<div className={styles.details}>
|
|
|
|
<div>
|
|
|
|
<div>
|
|
|
|
<span className={styles.year}>
|
|
|
|
{
|
|
|
|
{year}
|
|
|
|
year > 0 &&
|
|
|
|
</span>
|
|
|
|
<span className={styles.year}>
|
|
|
|
|
|
|
|
{year}
|
|
|
|
|
|
|
|
</span>
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
{
|
|
|
|
{
|
|
|
|
!!runtime &&
|
|
|
|
!!runtime &&
|
|
|
@ -607,7 +610,7 @@ MovieDetails.propTypes = {
|
|
|
|
studio: PropTypes.string,
|
|
|
|
studio: PropTypes.string,
|
|
|
|
collection: PropTypes.object,
|
|
|
|
collection: PropTypes.object,
|
|
|
|
youTubeTrailerId: PropTypes.string,
|
|
|
|
youTubeTrailerId: PropTypes.string,
|
|
|
|
inCinemas: PropTypes.string.isRequired,
|
|
|
|
inCinemas: PropTypes.string,
|
|
|
|
overview: PropTypes.string.isRequired,
|
|
|
|
overview: PropTypes.string.isRequired,
|
|
|
|
images: PropTypes.arrayOf(PropTypes.object).isRequired,
|
|
|
|
images: PropTypes.arrayOf(PropTypes.object).isRequired,
|
|
|
|
alternateTitles: PropTypes.arrayOf(PropTypes.string).isRequired,
|
|
|
|
alternateTitles: PropTypes.arrayOf(PropTypes.string).isRequired,
|
|
|
|