|
|
|
@ -4,12 +4,13 @@ import IconButton from 'Components/Link/IconButton';
|
|
|
|
|
import RelativeDateCellConnector from 'Components/Table/Cells/RelativeDateCellConnector';
|
|
|
|
|
import TableRowCell from 'Components/Table/Cells/TableRowCell';
|
|
|
|
|
import TableRow from 'Components/Table/TableRow';
|
|
|
|
|
import { icons } from 'Helpers/Props';
|
|
|
|
|
import Tooltip from 'Components/Tooltip/Tooltip';
|
|
|
|
|
import { icons, tooltipPositions } from 'Helpers/Props';
|
|
|
|
|
import MovieFormats from 'Movie/MovieFormats';
|
|
|
|
|
import MovieLanguage from 'Movie/MovieLanguage';
|
|
|
|
|
import MovieQuality from 'Movie/MovieQuality';
|
|
|
|
|
import MovieTitleLink from 'Movie/MovieTitleLink';
|
|
|
|
|
import formatCustomFormatScore from 'Utilities/Number/formatCustomFormatScore';
|
|
|
|
|
import formatPreferredWordScore from 'Utilities/Number/formatPreferredWordScore';
|
|
|
|
|
import HistoryDetailsModal from './Details/HistoryDetailsModal';
|
|
|
|
|
import HistoryEventTypeCell from './HistoryEventTypeCell';
|
|
|
|
|
import styles from './HistoryRow.css';
|
|
|
|
@ -176,7 +177,14 @@ class HistoryRow extends Component {
|
|
|
|
|
key={name}
|
|
|
|
|
className={styles.customFormatScore}
|
|
|
|
|
>
|
|
|
|
|
{formatCustomFormatScore(customFormatScore)}
|
|
|
|
|
<Tooltip
|
|
|
|
|
anchor={formatPreferredWordScore(
|
|
|
|
|
customFormatScore,
|
|
|
|
|
customFormats.length
|
|
|
|
|
)}
|
|
|
|
|
tooltip={<MovieFormats formats={customFormats} />}
|
|
|
|
|
position={tooltipPositions.BOTTOM}
|
|
|
|
|
/>
|
|
|
|
|
</TableRowCell>
|
|
|
|
|
);
|
|
|
|
|
}
|
|
|
|
@ -257,4 +265,8 @@ HistoryRow.propTypes = {
|
|
|
|
|
onMarkAsFailedPress: PropTypes.func.isRequired
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
HistoryRow.defaultProps = {
|
|
|
|
|
customFormats: []
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
export default HistoryRow;
|
|
|
|
|