add msg macro in EmojiPopup.android.tsx (#8091)

This commit is contained in:
surfdude29
2025-04-01 15:36:46 +01:00
committed by GitHub
parent fffcb609c6
commit 3d7fce563e
+3 -3
View File
@@ -3,7 +3,7 @@ import {Modal, Pressable, View} from 'react-native'
// @ts-expect-error internal component, not supposed to be used directly // @ts-expect-error internal component, not supposed to be used directly
// waiting on more customisability: https://github.com/okwasniewski/react-native-emoji-popup/issues/1#issuecomment-2737463753 // waiting on more customisability: https://github.com/okwasniewski/react-native-emoji-popup/issues/1#issuecomment-2737463753
import EmojiPopupView from 'react-native-emoji-popup/src/EmojiPopupViewNativeComponent' import EmojiPopupView from 'react-native-emoji-popup/src/EmojiPopupViewNativeComponent'
import {Trans} from '@lingui/macro' import {msg, Trans} from '@lingui/macro'
import {useLingui} from '@lingui/react' import {useLingui} from '@lingui/react'
import {atoms as a, useTheme} from '#/alf' import {atoms as a, useTheme} from '#/alf'
@@ -25,7 +25,7 @@ export function EmojiPopup({
return ( return (
<> <>
<Pressable <Pressable
accessibilityLabel={_('Open full emoji list')} accessibilityLabel={_(msg`Open full emoji list`)}
accessibilityHint="" accessibilityHint=""
accessibilityRole="button" accessibilityRole="button"
onPress={() => setModalVisible(true)}> onPress={() => setModalVisible(true)}>
@@ -55,7 +55,7 @@ export function EmojiPopup({
<Trans>Add Reaction</Trans> <Trans>Add Reaction</Trans>
</Text> </Text>
<Button <Button
label={_('Close')} label={_(msg`Close`)}
onPress={() => setModalVisible(false)} onPress={() => setModalVisible(false)}
size="small" size="small"
variant="ghost" variant="ghost"