Fix link to profile from chat invite embed (#10822)

This commit is contained in:
DS Boyce
2026-06-09 11:35:45 -07:00
committed by GitHub
parent 6ba5154bcc
commit de5ae04809
+3 -3
View File
@@ -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