Cleanup old usages of languageCutoffNotMet

This commit is contained in:
Mark McDowall 2023-01-04 20:42:45 -08:00
parent fe5c52602a
commit 84e6649724
7 changed files with 4 additions and 30 deletions

View File

@ -60,7 +60,6 @@ class HistoryRow extends Component {
series,
episode,
languages,
languageCutoffNotMet,
quality,
customFormats,
qualityCutoffNotMet,
@ -147,10 +146,7 @@ class HistoryRow extends Component {
if (name === 'languages') {
return (
<TableRowCell key={name}>
<EpisodeLanguages
languages={languages}
isCutoffMet={languageCutoffNotMet}
/>
<EpisodeLanguages languages={languages} />
</TableRowCell>
);
}
@ -279,7 +275,6 @@ HistoryRow.propTypes = {
series: PropTypes.object.isRequired,
episode: PropTypes.object,
languages: PropTypes.arrayOf(PropTypes.object).isRequired,
languageCutoffNotMet: PropTypes.bool.isRequired,
quality: PropTypes.object.isRequired,
customFormats: PropTypes.arrayOf(PropTypes.object),
qualityCutoffNotMet: PropTypes.bool.isRequired,

View File

@ -66,7 +66,6 @@ class EpisodeHistoryRow extends Component {
eventType,
sourceTitle,
languages,
languageCutoffNotMet,
quality,
qualityCutoffNotMet,
customFormats,
@ -90,10 +89,7 @@ class EpisodeHistoryRow extends Component {
</TableRowCell>
<TableRowCell>
<EpisodeLanguages
languages={languages}
isCutoffNotMet={languageCutoffNotMet}
/>
<EpisodeLanguages languages={languages} />
</TableRowCell>
<TableRowCell>
@ -166,7 +162,6 @@ EpisodeHistoryRow.propTypes = {
eventType: PropTypes.string.isRequired,
sourceTitle: PropTypes.string.isRequired,
languages: PropTypes.arrayOf(PropTypes.object).isRequired,
languageCutoffNotMet: PropTypes.bool.isRequired,
quality: PropTypes.object.isRequired,
qualityCutoffNotMet: PropTypes.bool.isRequired,
customFormats: PropTypes.arrayOf(PropTypes.object),

View File

@ -54,7 +54,6 @@ class EpisodeFileRow extends Component {
languages,
quality,
customFormats,
languageCutoffNotMet,
qualityCutoffNotMet,
mediaInfo,
columns
@ -95,10 +94,7 @@ class EpisodeFileRow extends Component {
key={name}
className={styles.languages}
>
<EpisodeLanguages
languages={languages}
isCutoffNotMet={languageCutoffNotMet}
/>
<EpisodeLanguages languages={languages} />
</TableRowCell>
);
}
@ -183,7 +179,6 @@ EpisodeFileRow.propTypes = {
path: PropTypes.string.isRequired,
size: PropTypes.number.isRequired,
languages: PropTypes.arrayOf(PropTypes.object).isRequired,
languageCutoffNotMet: PropTypes.bool.isRequired,
quality: PropTypes.object.isRequired,
qualityCutoffNotMet: PropTypes.bool.isRequired,
customFormats: PropTypes.arrayOf(PropTypes.object),

View File

@ -93,7 +93,6 @@ class EpisodeSummary extends Component {
languages,
quality,
customFormats,
languageCutoffNotMet,
qualityCutoffNotMet,
onDeleteEpisodeFile
} = this.props;
@ -140,7 +139,6 @@ class EpisodeSummary extends Component {
path={path}
size={size}
languages={languages}
languageCutoffNotMet={languageCutoffNotMet}
quality={quality}
qualityCutoffNotMet={qualityCutoffNotMet}
customFormats={customFormats}
@ -177,7 +175,6 @@ EpisodeSummary.propTypes = {
path: PropTypes.string,
size: PropTypes.number,
languages: PropTypes.arrayOf(PropTypes.object),
languageCutoffNotMet: PropTypes.bool,
quality: PropTypes.object,
qualityCutoffNotMet: PropTypes.bool,
customFormats: PropTypes.arrayOf(PropTypes.object),

View File

@ -29,7 +29,6 @@ function createMapStateToProps() {
path,
size,
languages,
languageCutoffNotMet,
quality,
qualityCutoffNotMet,
customFormats
@ -44,7 +43,6 @@ function createMapStateToProps() {
path,
size,
languages,
languageCutoffNotMet,
quality,
qualityCutoffNotMet,
customFormats

View File

@ -68,7 +68,6 @@ class SeriesHistoryRow extends Component {
eventType,
sourceTitle,
languages,
languageCutoffNotMet,
quality,
qualityCutoffNotMet,
customFormats,
@ -110,10 +109,7 @@ class SeriesHistoryRow extends Component {
</TableRowCell>
<TableRowCell>
<EpisodeLanguages
languages={languages}
isCutoffNotMet={languageCutoffNotMet}
/>
<EpisodeLanguages languages={languages} />
</TableRowCell>
<TableRowCell>
@ -186,7 +182,6 @@ SeriesHistoryRow.propTypes = {
eventType: PropTypes.string.isRequired,
sourceTitle: PropTypes.string.isRequired,
languages: PropTypes.object.isRequired,
languageCutoffNotMet: PropTypes.bool.isRequired,
quality: PropTypes.object.isRequired,
qualityCutoffNotMet: PropTypes.bool.isRequired,
customFormats: PropTypes.arrayOf(PropTypes.object),

View File

@ -161,7 +161,6 @@ export const actionHandlers = handleThunks({
const episodeFile = data.find((f) => f.id === id);
props.qualityCutoffNotMet = episodeFile.qualityCutoffNotMet;
props.languageCutoffNotMet = episodeFile.languageCutoffNotMet;
props.languages = file.languages;
props.quality = file.quality;
props.releaseGroup = file.releaseGroup;