Add labels to mod details dialog (#4839)

zio/stable
Eric Bailey 2024-07-25 18:07:23 -05:00 committed by GitHub
parent 783fd351ba
commit 1d827cebe4
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 10 additions and 3 deletions

View File

@ -54,7 +54,10 @@ function ModerationDetailsDialogInner({
description = ( description = (
<Trans> <Trans>
This user is included in the{' '} This user is included in the{' '}
<InlineLinkText to={listUriToHref(list.uri)} style={[a.text_sm]}> <InlineLinkText
label={list.name}
to={listUriToHref(list.uri)}
style={[a.text_sm]}>
{list.name} {list.name}
</InlineLinkText>{' '} </InlineLinkText>{' '}
list which you have blocked. list which you have blocked.
@ -83,7 +86,10 @@ function ModerationDetailsDialogInner({
description = ( description = (
<Trans> <Trans>
This user is included in the{' '} This user is included in the{' '}
<InlineLinkText to={listUriToHref(list.uri)} style={[a.text_sm]}> <InlineLinkText
label={list.name}
to={listUriToHref(list.uri)}
style={[a.text_sm]}>
{list.name} {list.name}
</InlineLinkText>{' '} </InlineLinkText>{' '}
list which you have muted. list which you have muted.
@ -127,10 +133,11 @@ function ModerationDetailsDialogInner({
<Trans> <Trans>
This label was applied by{' '} This label was applied by{' '}
<InlineLinkText <InlineLinkText
label={desc.source || _(msg`an unknown labeler`)}
to={makeProfileLink({did: modcause.label.src, handle: ''})} to={makeProfileLink({did: modcause.label.src, handle: ''})}
onPress={() => control.close()} onPress={() => control.close()}
style={a.text_md}> style={a.text_md}>
{desc.source} {desc.source || _(msg`an unknown labeler`)}
</InlineLinkText> </InlineLinkText>
. .
</Trans> </Trans>