+16
-27
src/view/com/posts/PostFeedReason.tsx
+16
-27
src/view/com/posts/PostFeedReason.tsx
···
10
import {atoms as a, useTheme} from '#/alf'
11
import {Pin_Stroke2_Corner0_Rounded as PinIcon} from '#/components/icons/Pin'
12
import {Repost_Stroke2_Corner3_Rounded as RepostIcon} from '#/components/icons/Repost'
13
-
import {Link, WebOnlyInlineLinkText} from '#/components/Link'
14
import {ProfileHoverCard} from '#/components/ProfileHoverCard'
15
import {Text} from '#/components/Typography'
16
import {FeedNameText} from '../util/FeedInfoText'
···
82
width={13}
83
height={13}
84
/>
85
-
<Text
86
-
style={[t.atoms.text_contrast_medium, a.font_medium, a.leading_snug]}
87
-
numberOfLines={1}>
88
-
{isOwner ? (
89
-
<Trans>Reposted by you</Trans>
90
-
) : (
91
-
<Trans>
92
-
Reposted by{' '}
93
-
<ProfileHoverCard did={reason.by.did}>
94
-
<WebOnlyInlineLinkText
95
-
label={reposter}
96
-
numberOfLines={1}
97
-
to={makeProfileLink(reason.by)}
98
-
onPress={onOpenReposter}
99
-
style={[
100
-
t.atoms.text_contrast_medium,
101
-
a.font_medium,
102
-
a.leading_snug,
103
-
]}
104
-
emoji>
105
-
{reposter}
106
-
</WebOnlyInlineLinkText>
107
-
</ProfileHoverCard>
108
-
</Trans>
109
-
)}
110
-
</Text>
111
</Link>
112
)
113
}
···
10
import {atoms as a, useTheme} from '#/alf'
11
import {Pin_Stroke2_Corner0_Rounded as PinIcon} from '#/components/icons/Pin'
12
import {Repost_Stroke2_Corner3_Rounded as RepostIcon} from '#/components/icons/Repost'
13
+
import {Link} from '#/components/Link'
14
import {ProfileHoverCard} from '#/components/ProfileHoverCard'
15
import {Text} from '#/components/Typography'
16
import {FeedNameText} from '../util/FeedInfoText'
···
82
width={13}
83
height={13}
84
/>
85
+
<ProfileHoverCard did={reason.by.did}>
86
+
<Text
87
+
style={[
88
+
t.atoms.text_contrast_medium,
89
+
a.font_medium,
90
+
a.leading_snug,
91
+
]}
92
+
numberOfLines={1}>
93
+
{isOwner ? (
94
+
<Trans>Reposted by you</Trans>
95
+
) : (
96
+
<Trans>Reposted by {reposter}</Trans>
97
+
)}
98
+
</Text>
99
+
</ProfileHoverCard>
100
</Link>
101
)
102
}