Improve aesthetics for deleted channel names.

## Issue
- Comments: no spacing between the strings.
- "Unused" is not intuitive.

## Changes
- Use "[Removed]" instead.
- Localization.
This commit is contained in:
infinite-persistence 2021-10-14 22:28:43 +08:00
parent 2505d67a7d
commit 8498554f23
No known key found for this signature in database
GPG key ID: B9C3252EDC3D0AA0
2 changed files with 7 additions and 1 deletions

View file

@ -2179,6 +2179,8 @@
"Card Last 4": "Card Last 4", "Card Last 4": "Card Last 4",
"Search blocked channel name": "Search blocked channel name", "Search blocked channel name": "Search blocked channel name",
"Discuss": "Discuss", "Discuss": "Discuss",
"Validating...": "Validating...",
"[Removed]": "[Removed]",
"lbry.tv has been retired. You have been magically transported to Odysee.com. %more%": "lbry.tv has been retired. You have been magically transported to Odysee.com. %more%", "lbry.tv has been retired. You have been magically transported to Odysee.com. %more%": "lbry.tv has been retired. You have been magically transported to Odysee.com. %more%",
"Show more livestreams": "Show more livestreams", "Show more livestreams": "Show more livestreams",
"Creator": "Creator", "Creator": "Creator",

View file

@ -53,7 +53,11 @@ class UriIndicator extends React.PureComponent<Props> {
} = this.props; } = this.props;
if (!claim) { if (!claim) {
return <span className="empty">{isResolvingUri ? 'Validating...' : 'Unused'}</span>; return (
<span className={classnames('empty', className)}>
{isResolvingUri || claim === undefined ? __('Validating...') : __('[Removed]')}
</span>
);
} }
const isChannelClaim = claim.value_type === 'channel'; const isChannelClaim = claim.value_type === 'channel';