about summary refs log tree commit diff
path: root/src/components/ReportDialog/index.tsx
diff options
context:
space:
mode:
authorEric Bailey <git@esb.lol>2024-03-21 12:21:36 -0500
committerGitHub <noreply@github.com>2024-03-21 12:21:36 -0500
commit5f39ca31872af0554d79d9a6d0b070110385e9bd (patch)
treebdb1c9eb4d9e6e7aafe17f67999b83540e1e8df3 /src/components/ReportDialog/index.tsx
parent4ff2bb7abaac0eb8152d688ab7c71df84e725d3a (diff)
downloadvoidsky-5f39ca31872af0554d79d9a6d0b070110385e9bd.tar.zst
Mods UI fixes (#3296)
* Fix report dialog buttons on Android by adjusting styles

* Dry up label pref comp
Diffstat (limited to 'src/components/ReportDialog/index.tsx')
-rw-r--r--src/components/ReportDialog/index.tsx6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/components/ReportDialog/index.tsx b/src/components/ReportDialog/index.tsx
index b41df3b3a..c87d32f9e 100644
--- a/src/components/ReportDialog/index.tsx
+++ b/src/components/ReportDialog/index.tsx
@@ -1,6 +1,7 @@
 import React from 'react'
 import {Pressable, View} from 'react-native'
-import {Trans} from '@lingui/macro'
+import {msg, Trans} from '@lingui/macro'
+import {useLingui} from '@lingui/react'
 
 import {ReportOption} from '#/lib/moderation/useReportOptions'
 import {useMyLabelersQuery} from '#/state/queries/preferences'
@@ -31,6 +32,7 @@ export function ReportDialog(props: ReportDialogProps) {
 }
 
 function ReportDialogInner(props: ReportDialogProps) {
+  const {_} = useLingui()
   const {
     isLoading: isLabelerLoading,
     data: labelers,
@@ -44,7 +46,7 @@ function ReportDialogInner(props: ReportDialogProps) {
   })
 
   return (
-    <Dialog.ScrollableInner label="Report Dialog" ref={ref}>
+    <Dialog.ScrollableInner label={_(msg`Report dialog`)} ref={ref}>
       {isLoading ? (
         <View style={[a.align_center, {height: 100}]}>
           <Loader size="xl" />