about summary refs log tree commit diff
path: root/src/view/com/util/BottomSheetCustomBackdrop.tsx
diff options
context:
space:
mode:
authorSamuel Newman <mozzius@protonmail.com>2024-03-18 14:37:30 +0000
committerSamuel Newman <mozzius@protonmail.com>2024-03-18 14:37:30 +0000
commitfbfb78b8604598954e7959f68afc32686a468085 (patch)
tree45d64352c7153afa7e27c8c49f37539e11289214 /src/view/com/util/BottomSheetCustomBackdrop.tsx
parent98bca69ae996dabf3c7bf05f98497b56b62cb494 (diff)
downloadvoidsky-fbfb78b8604598954e7959f68afc32686a468085.tar.zst
change usage of t to msg
Diffstat (limited to 'src/view/com/util/BottomSheetCustomBackdrop.tsx')
-rw-r--r--src/view/com/util/BottomSheetCustomBackdrop.tsx7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/view/com/util/BottomSheetCustomBackdrop.tsx b/src/view/com/util/BottomSheetCustomBackdrop.tsx
index ed5a2f165..ab6570252 100644
--- a/src/view/com/util/BottomSheetCustomBackdrop.tsx
+++ b/src/view/com/util/BottomSheetCustomBackdrop.tsx
@@ -6,12 +6,15 @@ import Animated, {
   interpolate,
   useAnimatedStyle,
 } from 'react-native-reanimated'
-import {t} from '@lingui/macro'
+import {msg} from '@lingui/macro'
+import {useLingui} from '@lingui/react'
 
 export function createCustomBackdrop(
   onClose?: (() => void) | undefined,
 ): React.FC<BottomSheetBackdropProps> {
   const CustomBackdrop = ({animatedIndex, style}: BottomSheetBackdropProps) => {
+    const {_} = useLingui()
+
     // animated variables
     const opacity = useAnimatedStyle(() => ({
       opacity: interpolate(
@@ -30,7 +33,7 @@ export function createCustomBackdrop(
     return (
       <TouchableWithoutFeedback
         onPress={onClose}
-        accessibilityLabel={t`Close bottom drawer`}
+        accessibilityLabel={_(msg`Close bottom drawer`)}
         accessibilityHint=""
         onAccessibilityEscape={() => {
           if (onClose !== undefined) {