Claim title fixes

Also fixed bug on mentions
This commit is contained in:
Thomas Zarebczan 2022-02-26 13:47:54 -05:00
parent f88bfcd7f3
commit cfea97dd96
No known key found for this signature in database
GPG key ID: 767B41E1BB7346F2
7 changed files with 7 additions and 6 deletions

View file

@ -75,7 +75,7 @@ class ClaimLink extends React.Component<Props> {
return isChannel ? ( return isChannel ? (
<> <>
<UriIndicator uri={uri} link /> <UriIndicator uri={uri} link showAtSign />
<span>{fullUri.length > uri.length ? fullUri.substring(uri.length, fullUri.length) : ''}</span> <span>{fullUri.length > uri.length ? fullUri.substring(uri.length, fullUri.length) : ''}</span>
</> </>
) : allowPreview ? ( ) : allowPreview ? (

View file

@ -277,6 +277,7 @@ function CommentView(props: Props) {
})} })}
link link
uri={authorUri} uri={authorUri}
showAtSign
/> />
)} )}
<Button <Button

View file

@ -22,7 +22,7 @@ export const StickerReviewBox = (props: Props) => {
<div className="commentCreate__stickerPreview"> <div className="commentCreate__stickerPreview">
<div className="commentCreate__stickerPreviewInfo"> <div className="commentCreate__stickerPreviewInfo">
<ChannelThumbnail xsmall uri={activeChannelUrl} /> <ChannelThumbnail xsmall uri={activeChannelUrl} />
<UriIndicator uri={activeChannelUrl} link /> <UriIndicator uri={activeChannelUrl} link showAtSign />
</div> </div>
<div className="commentCreate__stickerPreviewImage"> <div className="commentCreate__stickerPreviewImage">

View file

@ -38,7 +38,7 @@ export const TipReviewBox = (props: Props) => {
<ChannelThumbnail xsmall uri={activeChannelUrl} /> <ChannelThumbnail xsmall uri={activeChannelUrl} />
<div className="commentCreate__supportCommentBody"> <div className="commentCreate__supportCommentBody">
<UriIndicator uri={activeChannelUrl} link /> <UriIndicator uri={activeChannelUrl} link showAtSign />
<div>{message}</div> <div>{message}</div>
</div> </div>
</> </>

View file

@ -60,7 +60,7 @@ export default function LivestreamSuperchats(props: Props) {
})} })}
> >
<div className="livestreamSuperchat__info--user"> <div className="livestreamSuperchat__info--user">
<UriIndicator uri={channel_url} link /> <UriIndicator uri={channel_url} link showAtSign />
<CreditAmount <CreditAmount
hideTitle hideTitle

View file

@ -11,7 +11,7 @@ const select = (state, props) => {
return { return {
claimLabel: claim && formatLbryChannelName(claim.canonical_url), claimLabel: claim && formatLbryChannelName(claim.canonical_url),
claimTitle: claim && getClaimTitle(claim.canonical_url), claimTitle: claim && getClaimTitle(claim),
}; };
}; };

View file

@ -147,7 +147,7 @@ class TransactionListTableItem extends React.PureComponent<Props, State> {
{isLbryViewReward && <div className="table__item-label">{__('%SITE_NAME% view reward', { SITE_NAME })}</div>} {isLbryViewReward && <div className="table__item-label">{__('%SITE_NAME% view reward', { SITE_NAME })}</div>}
{isTip && signingChannel && !isLbryViewReward && ( {isTip && signingChannel && !isLbryViewReward && (
<div className="table__item-label"> <div className="table__item-label">
<UriIndicator uri={signingChannel && signingChannel.permanent_url} link /> <UriIndicator uri={signingChannel && signingChannel.permanent_url} link showAtSign />
</div> </div>
)} )}
{isTip && !signingChannel && !isLbryViewReward && <div className="table__item-label">Anonymous</div>} {isTip && !signingChannel && !isLbryViewReward && <div className="table__item-label">Anonymous</div>}