Fix link to profile from chat invite embed (#10822)
This commit is contained in:
@@ -7,7 +7,7 @@ import {makeProfileLink} from '#/lib/routes/links'
|
|||||||
import {sanitizeHandle} from '#/lib/strings/handles'
|
import {sanitizeHandle} from '#/lib/strings/handles'
|
||||||
import {atoms as a, useTheme} from '#/alf'
|
import {atoms as a, useTheme} from '#/alf'
|
||||||
import {AvatarBubbles} from '#/components/AvatarBubbles'
|
import {AvatarBubbles} from '#/components/AvatarBubbles'
|
||||||
import {SimpleInlineLinkText} from '#/components/Link'
|
import {InlineLinkText} from '#/components/Link'
|
||||||
import {ProfileBadges} from '#/components/ProfileBadges'
|
import {ProfileBadges} from '#/components/ProfileBadges'
|
||||||
import {Text} from '#/components/Typography'
|
import {Text} from '#/components/Typography'
|
||||||
import {useChatInvite} from './Context'
|
import {useChatInvite} from './Context'
|
||||||
@@ -78,12 +78,12 @@ export function Card({size}: {size: 'large' | 'small'}) {
|
|||||||
allowFontScaling={!hasFixedHeight}>
|
allowFontScaling={!hasFixedHeight}>
|
||||||
<Trans comment="The group chat creator, in the format 'By {displayName}'.">
|
<Trans comment="The group chat creator, in the format 'By {displayName}'.">
|
||||||
By{' '}
|
By{' '}
|
||||||
<SimpleInlineLinkText
|
<InlineLinkText
|
||||||
to={makeProfileLink(preview.owner)}
|
to={makeProfileLink(preview.owner)}
|
||||||
label={ownerDisplayName}
|
label={ownerDisplayName}
|
||||||
style={[a.font_medium, t.atoms.text]}>
|
style={[a.font_medium, t.atoms.text]}>
|
||||||
{ownerDisplayName}
|
{ownerDisplayName}
|
||||||
</SimpleInlineLinkText>
|
</InlineLinkText>
|
||||||
</Trans>
|
</Trans>
|
||||||
</Text>
|
</Text>
|
||||||
<ProfileBadges
|
<ProfileBadges
|
||||||
|
|||||||
Reference in New Issue
Block a user