fix nested link in repost reason (#9450)
This commit is contained in:
@@ -10,7 +10,7 @@ import {useSession} from '#/state/session'
|
||||
import {atoms as a, useTheme} from '#/alf'
|
||||
import {Pin_Stroke2_Corner0_Rounded as PinIcon} from '#/components/icons/Pin'
|
||||
import {Repost_Stroke2_Corner3_Rounded as RepostIcon} from '#/components/icons/Repost'
|
||||
import {Link, WebOnlyInlineLinkText} from '#/components/Link'
|
||||
import {Link} from '#/components/Link'
|
||||
import {ProfileHoverCard} from '#/components/ProfileHoverCard'
|
||||
import {Text} from '#/components/Typography'
|
||||
import {FeedNameText} from '../util/FeedInfoText'
|
||||
@@ -82,32 +82,21 @@ export function PostFeedReason({
|
||||
width={13}
|
||||
height={13}
|
||||
/>
|
||||
<Text
|
||||
style={[t.atoms.text_contrast_medium, a.font_medium, a.leading_snug]}
|
||||
numberOfLines={1}>
|
||||
{isOwner ? (
|
||||
<Trans>Reposted by you</Trans>
|
||||
) : (
|
||||
<Trans>
|
||||
Reposted by{' '}
|
||||
<ProfileHoverCard did={reason.by.did}>
|
||||
<WebOnlyInlineLinkText
|
||||
label={reposter}
|
||||
numberOfLines={1}
|
||||
to={makeProfileLink(reason.by)}
|
||||
onPress={onOpenReposter}
|
||||
style={[
|
||||
t.atoms.text_contrast_medium,
|
||||
a.font_medium,
|
||||
a.leading_snug,
|
||||
]}
|
||||
emoji>
|
||||
{reposter}
|
||||
</WebOnlyInlineLinkText>
|
||||
</ProfileHoverCard>
|
||||
</Trans>
|
||||
)}
|
||||
</Text>
|
||||
<ProfileHoverCard did={reason.by.did}>
|
||||
<Text
|
||||
style={[
|
||||
t.atoms.text_contrast_medium,
|
||||
a.font_medium,
|
||||
a.leading_snug,
|
||||
]}
|
||||
numberOfLines={1}>
|
||||
{isOwner ? (
|
||||
<Trans>Reposted by you</Trans>
|
||||
) : (
|
||||
<Trans>Reposted by {reposter}</Trans>
|
||||
)}
|
||||
</Text>
|
||||
</ProfileHoverCard>
|
||||
</Link>
|
||||
)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user