Skip to content

Commit 55b48a8

Browse files
committed
MBS-11513: Use React.useContext in reports
1 parent d4d068f commit 55b48a8

File tree

95 files changed

+81
-258
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

95 files changed

+81
-258
lines changed

root/report/AnnotationsArtists.js

-2
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ import ReportLayout from './components/ReportLayout';
1515
import type {ReportArtistAnnotationT, ReportDataT} from './types';
1616

1717
const AnnotationsArtists = ({
18-
$c,
1918
canBeFiltered,
2019
filtered,
2120
generated,
@@ -24,7 +23,6 @@ const AnnotationsArtists = ({
2423
}: ReportDataT<ReportArtistAnnotationT>):
2524
React.Element<typeof ReportLayout> => (
2625
<ReportLayout
27-
$c={$c}
2826
canBeFiltered={canBeFiltered}
2927
description={l('This report lists artists with annotations.')}
3028
entityType="artist"

root/report/AnnotationsLabels.js

-2
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ import ReportLayout from './components/ReportLayout';
1515
import type {ReportDataT, ReportLabelAnnotationT} from './types';
1616

1717
const AnnotationsLabels = ({
18-
$c,
1918
canBeFiltered,
2019
filtered,
2120
generated,
@@ -24,7 +23,6 @@ const AnnotationsLabels = ({
2423
}: ReportDataT<ReportLabelAnnotationT>):
2524
React.Element<typeof ReportLayout> => (
2625
<ReportLayout
27-
$c={$c}
2826
canBeFiltered={canBeFiltered}
2927
description={l('This report lists labels with annotations.')}
3028
entityType="label"

root/report/AnnotationsPlaces.js

-2
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ import ReportLayout from './components/ReportLayout';
1515
import type {ReportDataT, ReportPlaceAnnotationT} from './types';
1616

1717
const AnnotationsPlaces = ({
18-
$c,
1918
canBeFiltered,
2019
filtered,
2120
generated,
@@ -24,7 +23,6 @@ const AnnotationsPlaces = ({
2423
}: ReportDataT<ReportPlaceAnnotationT>):
2524
React.Element<typeof ReportLayout> => (
2625
<ReportLayout
27-
$c={$c}
2826
canBeFiltered={canBeFiltered}
2927
description={l('This report lists places with annotations.')}
3028
entityType="place"

root/report/AnnotationsRecordings.js

-2
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ import ReportLayout from './components/ReportLayout';
1515
import type {ReportDataT, ReportRecordingAnnotationT} from './types';
1616

1717
const AnnotationsRecordings = ({
18-
$c,
1918
canBeFiltered,
2019
filtered,
2120
generated,
@@ -24,7 +23,6 @@ const AnnotationsRecordings = ({
2423
}: ReportDataT<ReportRecordingAnnotationT>):
2524
React.Element<typeof ReportLayout> => (
2625
<ReportLayout
27-
$c={$c}
2826
canBeFiltered={canBeFiltered}
2927
description={l('This report lists recordings with annotations.')}
3028
entityType="recording"

root/report/AnnotationsReleaseGroups.js

-2
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ import ReportLayout from './components/ReportLayout';
1616
import type {ReportDataT, ReportReleaseGroupAnnotationT} from './types';
1717

1818
const AnnotationsReleaseGroups = ({
19-
$c,
2019
canBeFiltered,
2120
filtered,
2221
generated,
@@ -25,7 +24,6 @@ const AnnotationsReleaseGroups = ({
2524
}: ReportDataT<ReportReleaseGroupAnnotationT>):
2625
React.Element<typeof ReportLayout> => (
2726
<ReportLayout
28-
$c={$c}
2927
canBeFiltered={canBeFiltered}
3028
description={l('This report lists release groups with annotations.')}
3129
entityType="release_group"

root/report/AnnotationsReleases.js

-2
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ import ReportLayout from './components/ReportLayout';
1515
import type {ReportDataT, ReportReleaseAnnotationT} from './types';
1616

1717
const AnnotationsReleases = ({
18-
$c,
1918
canBeFiltered,
2019
filtered,
2120
generated,
@@ -24,7 +23,6 @@ const AnnotationsReleases = ({
2423
}: ReportDataT<ReportReleaseAnnotationT>):
2524
React.Element<typeof ReportLayout> => (
2625
<ReportLayout
27-
$c={$c}
2826
canBeFiltered={canBeFiltered}
2927
description={l('This report lists releases with annotations.')}
3028
entityType="release"

root/report/AnnotationsSeries.js

-2
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ import ReportLayout from './components/ReportLayout';
1515
import type {ReportDataT, ReportSeriesAnnotationT} from './types';
1616

1717
const AnnotationsSeries = ({
18-
$c,
1918
canBeFiltered,
2019
filtered,
2120
generated,
@@ -24,7 +23,6 @@ const AnnotationsSeries = ({
2423
}: ReportDataT<ReportSeriesAnnotationT>):
2524
React.Element<typeof ReportLayout> => (
2625
<ReportLayout
27-
$c={$c}
2826
canBeFiltered={canBeFiltered}
2927
description={l('This report lists series with annotations.')}
3028
entityType="series"

root/report/AnnotationsWorks.js

-2
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ import ReportLayout from './components/ReportLayout';
1515
import type {ReportDataT, ReportWorkAnnotationT} from './types';
1616

1717
const AnnotationsWorks = ({
18-
$c,
1918
canBeFiltered,
2019
filtered,
2120
generated,
@@ -24,7 +23,6 @@ const AnnotationsWorks = ({
2423
}: ReportDataT<ReportWorkAnnotationT>):
2524
React.Element<typeof ReportLayout> => (
2625
<ReportLayout
27-
$c={$c}
2826
canBeFiltered={canBeFiltered}
2927
description={l('This report lists works with annotations.')}
3028
entityType="work"

root/report/ArtistsContainingDisambiguationComments.js

-2
Original file line numberDiff line numberDiff line change
@@ -14,15 +14,13 @@ import ReportLayout from './components/ReportLayout';
1414
import type {ReportArtistT, ReportDataT} from './types';
1515

1616
const ArtistsContainingDisambiguationComments = ({
17-
$c,
1817
canBeFiltered,
1918
filtered,
2019
generated,
2120
items,
2221
pager,
2322
}: ReportDataT<ReportArtistT>): React.Element<typeof ReportLayout> => (
2423
<ReportLayout
25-
$c={$c}
2624
canBeFiltered={canBeFiltered}
2725
description={l(
2826
`This report lists artists that may have disambiguation comments

root/report/ArtistsDisambiguationSameName.js

-2
Original file line numberDiff line numberDiff line change
@@ -14,15 +14,13 @@ import ReportLayout from './components/ReportLayout';
1414
import type {ReportArtistT, ReportDataT} from './types';
1515

1616
const ArtistsDisambiguationSameName = ({
17-
$c,
1817
canBeFiltered,
1918
filtered,
2019
generated,
2120
items,
2221
pager,
2322
}: ReportDataT<ReportArtistT>): React.Element<typeof ReportLayout> => (
2423
<ReportLayout
25-
$c={$c}
2624
canBeFiltered={canBeFiltered}
2725
description={l(
2826
`This report lists artists that have their disambiguation set

root/report/ArtistsThatMayBeGroups.js

-2
Original file line numberDiff line numberDiff line change
@@ -14,15 +14,13 @@ import ReportLayout from './components/ReportLayout';
1414
import type {ReportArtistT, ReportDataT} from './types';
1515

1616
const ArtistsThatMayBeGroups = ({
17-
$c,
1817
canBeFiltered,
1918
filtered,
2019
generated,
2120
items,
2221
pager,
2322
}: ReportDataT<ReportArtistT>): React.Element<typeof ReportLayout> => (
2423
<ReportLayout
25-
$c={$c}
2624
canBeFiltered={canBeFiltered}
2725
description={l(
2826
`This report lists artists that have their type set to other

root/report/ArtistsThatMayBePersons.js

-2
Original file line numberDiff line numberDiff line change
@@ -14,15 +14,13 @@ import ReportLayout from './components/ReportLayout';
1414
import type {ReportArtistT, ReportDataT} from './types';
1515

1616
const ArtistsThatMayBePersons = ({
17-
$c,
1817
canBeFiltered,
1918
filtered,
2019
generated,
2120
items,
2221
pager,
2322
}: ReportDataT<ReportArtistT>): React.Element<typeof ReportLayout> => (
2423
<ReportLayout
25-
$c={$c}
2624
canBeFiltered={canBeFiltered}
2725
description={l(
2826
`This report lists artists that have their type set to other

root/report/ArtistsWithMultipleOccurrencesInArtistCredits.js

-2
Original file line numberDiff line numberDiff line change
@@ -17,15 +17,13 @@ import ReportLayout from './components/ReportLayout';
1717
import type {ReportArtistT, ReportDataT} from './types';
1818

1919
const ArtistsWithMultipleOccurrencesInArtistCredits = ({
20-
$c,
2120
canBeFiltered,
2221
filtered,
2322
generated,
2423
items,
2524
pager,
2625
}: ReportDataT<ReportArtistT>): React.Element<typeof ReportLayout> => (
2726
<ReportLayout
28-
$c={$c}
2927
canBeFiltered={canBeFiltered}
3028
description={l(
3129
`This report lists artists that appear more than once

root/report/ArtistsWithNoSubscribers.js

-2
Original file line numberDiff line numberDiff line change
@@ -14,15 +14,13 @@ import ReportLayout from './components/ReportLayout';
1414
import type {ReportArtistT, ReportDataT} from './types';
1515

1616
const ArtistsWithNoSubscribers = ({
17-
$c,
1817
canBeFiltered,
1918
filtered,
2019
generated,
2120
items,
2221
pager,
2322
}: ReportDataT<ReportArtistT>): React.Element<typeof ReportLayout> => (
2423
<ReportLayout
25-
$c={$c}
2624
canBeFiltered={canBeFiltered}
2725
description={l(
2826
`This report lists artists that have no editors subscribed to them,

root/report/AsinsWithMultipleReleases.js

-2
Original file line numberDiff line numberDiff line change
@@ -14,15 +14,13 @@ import ReportLayout from './components/ReportLayout';
1414
import type {ReportDataT, ReportReleaseUrlT} from './types';
1515

1616
const AsinsWithMultipleReleases = ({
17-
$c,
1817
canBeFiltered,
1918
filtered,
2019
generated,
2120
items,
2221
pager,
2322
}: ReportDataT<ReportReleaseUrlT>): React.Element<typeof ReportLayout> => (
2423
<ReportLayout
25-
$c={$c}
2624
canBeFiltered={canBeFiltered}
2725
description={exp.l(
2826
`This report shows Amazon URLs which are linked to multiple

root/report/BadAmazonUrls.js

-2
Original file line numberDiff line numberDiff line change
@@ -19,15 +19,13 @@ import ReportLayout from './components/ReportLayout';
1919
import type {ReportDataT, ReportReleaseUrlT} from './types';
2020

2121
const BadAmazonUrls = ({
22-
$c,
2322
canBeFiltered,
2423
filtered,
2524
generated,
2625
items,
2726
pager,
2827
}: ReportDataT<ReportReleaseUrlT>): React.Element<typeof ReportLayout> => (
2928
<ReportLayout
30-
$c={$c}
3129
canBeFiltered={canBeFiltered}
3230
description={l(
3331
`This report shows releases with Amazon URLs which don't follow

root/report/CDTocDubiousLength.js

-2
Original file line numberDiff line numberDiff line change
@@ -14,15 +14,13 @@ import ReportLayout from './components/ReportLayout';
1414
import type {ReportDataT, ReportCDTocT} from './types';
1515

1616
const CDTocDubiousLength = ({
17-
$c,
1817
canBeFiltered,
1918
generated,
2019
filtered,
2120
items,
2221
pager,
2322
}: ReportDataT<ReportCDTocT>): React.Element<typeof ReportLayout> => (
2423
<ReportLayout
25-
$c={$c}
2624
canBeFiltered={canBeFiltered}
2725
description={l(
2826
`This report shows disc IDs indicating a total duration much longer

root/report/CDTocNotApplied.js

-2
Original file line numberDiff line numberDiff line change
@@ -14,15 +14,13 @@ import ReportLayout from './components/ReportLayout';
1414
import type {ReportDataT, ReportCDTocReleaseT} from './types';
1515

1616
const CDTocNotApplied = ({
17-
$c,
1817
canBeFiltered,
1918
filtered,
2019
generated,
2120
items,
2221
pager,
2322
}: ReportDataT<ReportCDTocReleaseT>): React.Element<typeof ReportLayout> => (
2423
<ReportLayout
25-
$c={$c}
2624
canBeFiltered={canBeFiltered}
2725
description={l(
2826
`This report shows disc IDs attached to a release but obviously not

root/report/CatNoLooksLikeAsin.js

-2
Original file line numberDiff line numberDiff line change
@@ -19,15 +19,13 @@ import ReportLayout from './components/ReportLayout';
1919
import type {ReportDataT, ReportReleaseCatNoT} from './types';
2020

2121
const CatNoLooksLikeAsin = ({
22-
$c,
2322
canBeFiltered,
2423
filtered,
2524
generated,
2625
items,
2726
pager,
2827
}: ReportDataT<ReportReleaseCatNoT>): React.Element<typeof ReportLayout> => (
2928
<ReportLayout
30-
$c={$c}
3129
canBeFiltered={canBeFiltered}
3230
description={l(
3331
`This report shows releases which have catalog numbers that look

root/report/CatNoLooksLikeLabelCode.js

-2
Original file line numberDiff line numberDiff line change
@@ -19,15 +19,13 @@ import ReportLayout from './components/ReportLayout';
1919
import type {ReportDataT, ReportReleaseCatNoT} from './types';
2020

2121
const CatNoLooksLikeLabelCode = ({
22-
$c,
2322
canBeFiltered,
2423
filtered,
2524
generated,
2625
items,
2726
pager,
2827
}: ReportDataT<ReportReleaseCatNoT>): React.Element<typeof ReportLayout> => (
2928
<ReportLayout
30-
$c={$c}
3129
canBeFiltered={canBeFiltered}
3230
description={exp.l(
3331
`This report shows releases which have catalog numbers that look

root/report/CollaborationRelationships.js

-2
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ import ReportLayout from './components/ReportLayout';
1616
import type {ReportCollaborationT, ReportDataT} from './types';
1717

1818
const CollaborationRelationships = ({
19-
$c,
2019
canBeFiltered,
2120
filtered,
2221
generated,
@@ -28,7 +27,6 @@ const CollaborationRelationships = ({
2827

2928
return (
3029
<ReportLayout
31-
$c={$c}
3230
canBeFiltered={canBeFiltered}
3331
description={exp.l(
3432
`This report lists artists which have collaboration relationships

root/report/CoverArtRelationships.js

-2
Original file line numberDiff line numberDiff line change
@@ -14,15 +14,13 @@ import ReportLayout from './components/ReportLayout';
1414
import type {ReportDataT, ReportReleaseT} from './types';
1515

1616
const CoverArtRelationships = ({
17-
$c,
1817
canBeFiltered,
1918
filtered,
2019
generated,
2120
items,
2221
pager,
2322
}: ReportDataT<ReportReleaseT>): React.Element<typeof ReportLayout> => (
2423
<ReportLayout
25-
$c={$c}
2624
canBeFiltered={canBeFiltered}
2725
description={l(
2826
`This report shows releases that still have

root/report/DeprecatedRelationshipArtists.js

-2
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@ import ReportLayout from './components/ReportLayout';
1414
import type {ReportArtistRelationshipT, ReportDataT} from './types';
1515

1616
const DeprecatedRelationshipArtists = ({
17-
$c,
1817
canBeFiltered,
1918
filtered,
2019
generated,
@@ -23,7 +22,6 @@ const DeprecatedRelationshipArtists = ({
2322
}: ReportDataT<ReportArtistRelationshipT>):
2423
React.Element<typeof ReportLayout> => (
2524
<ReportLayout
26-
$c={$c}
2725
canBeFiltered={canBeFiltered}
2826
description={l(
2927
`This report lists artists which have relationships using

root/report/DeprecatedRelationshipLabels.js

-2
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@ import ReportLayout from './components/ReportLayout';
1414
import type {ReportDataT, ReportLabelRelationshipT} from './types';
1515

1616
const DeprecatedRelationshipLabels = ({
17-
$c,
1817
canBeFiltered,
1918
filtered,
2019
generated,
@@ -23,7 +22,6 @@ const DeprecatedRelationshipLabels = ({
2322
}: ReportDataT<ReportLabelRelationshipT>):
2423
React.Element<typeof ReportLayout> => (
2524
<ReportLayout
26-
$c={$c}
2725
canBeFiltered={canBeFiltered}
2826
description={l(
2927
`This report lists labels which have relationships using

root/report/DeprecatedRelationshipPlaces.js

-2
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@ import ReportLayout from './components/ReportLayout';
1414
import type {ReportDataT, ReportPlaceRelationshipT} from './types';
1515

1616
const DeprecatedRelationshipPlaces = ({
17-
$c,
1817
canBeFiltered,
1918
filtered,
2019
generated,
@@ -23,7 +22,6 @@ const DeprecatedRelationshipPlaces = ({
2322
}: ReportDataT<ReportPlaceRelationshipT>):
2423
React.Element<typeof ReportLayout> => (
2524
<ReportLayout
26-
$c={$c}
2725
canBeFiltered={canBeFiltered}
2826
description={l(
2927
`This report lists places which have relationships using

0 commit comments

Comments
 (0)