about summary refs log tree commit diff
path: root/src/components/moderation
diff options
context:
space:
mode:
authorEric Bailey <git@esb.lol>2024-07-25 18:07:23 -0500
committerGitHub <noreply@github.com>2024-07-25 18:07:23 -0500
commit1d827cebe4356579d8e9f939e17707b9033e3e43 (patch)
treea8d3dd2d5fae1584d656c47e4a72395c69b93222 /src/components/moderation
parent783fd351ba5299a74cc9e6885939ef09034ed97d (diff)
downloadvoidsky-1d827cebe4356579d8e9f939e17707b9033e3e43.tar.zst
Add labels to mod details dialog (#4839)
Diffstat (limited to 'src/components/moderation')
-rw-r--r--src/components/moderation/ModerationDetailsDialog.tsx13
1 files changed, 10 insertions, 3 deletions
diff --git a/src/components/moderation/ModerationDetailsDialog.tsx b/src/components/moderation/ModerationDetailsDialog.tsx
index edf828755..ebfe45232 100644
--- a/src/components/moderation/ModerationDetailsDialog.tsx
+++ b/src/components/moderation/ModerationDetailsDialog.tsx
@@ -54,7 +54,10 @@ function ModerationDetailsDialogInner({
       description = (
         <Trans>
           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}
           </InlineLinkText>{' '}
           list which you have blocked.
@@ -83,7 +86,10 @@ function ModerationDetailsDialogInner({
       description = (
         <Trans>
           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}
           </InlineLinkText>{' '}
           list which you have muted.
@@ -127,10 +133,11 @@ function ModerationDetailsDialogInner({
               <Trans>
                 This label was applied by{' '}
                 <InlineLinkText
+                  label={desc.source || _(msg`an unknown labeler`)}
                   to={makeProfileLink({did: modcause.label.src, handle: ''})}
                   onPress={() => control.close()}
                   style={a.text_md}>
-                  {desc.source}
+                  {desc.source || _(msg`an unknown labeler`)}
                 </InlineLinkText>
                 .
               </Trans>