Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
MBS-10910: Display renamed from/to on label overview
This seems like a sensible way to follow the flow of labels that were renamed, and I see no negatives about showing them there. I saw artist legal name is treated as only ever one result (which seems weird to me, but that's a separate issue). Because a label could be listed as renamed from or to multiple others, I pass these as arrays. I expect in most cases these would be data errors, but having them be visible makes them more likely to get fixed anyway.
- Loading branch information
1 parent
cfe6812
commit 0bc24bf
Showing
5 changed files
with
94 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
/* | ||
* @flow strict | ||
* Copyright (C) 2020 MetaBrainz Foundation | ||
* | ||
* This file is part of MusicBrainz, the open internet music database, | ||
* and is licensed under the GPL version 2, or (at your option) any | ||
* later version: http://www.gnu.org/licenses/gpl-2.0.txt | ||
*/ | ||
|
||
import * as React from 'react'; | ||
|
||
type Props = { | ||
+children: React$Node, | ||
+title: string, | ||
}; | ||
|
||
const RelatedEntitiesDisplay = ( | ||
{children, title}: Props, | ||
): React.Element<'p'> => ( | ||
<p> | ||
<strong>{addColonText(title)}</strong> | ||
{' '} | ||
{children} | ||
</p> | ||
); | ||
|
||
export default RelatedEntitiesDisplay; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters