diff --git a/mobile-app/app/screens/AppNavigator/screens/Portfolio/screens/ReceiveScreen.tsx b/mobile-app/app/screens/AppNavigator/screens/Portfolio/screens/ReceiveScreen.tsx index 85ca211127..d968ee75e2 100644 --- a/mobile-app/app/screens/AppNavigator/screens/Portfolio/screens/ReceiveScreen.tsx +++ b/mobile-app/app/screens/AppNavigator/screens/Portfolio/screens/ReceiveScreen.tsx @@ -17,6 +17,7 @@ import { useLogger, } from "@shared-contexts/NativeLoggingProvider"; import { debounce } from "lodash"; +import { DomainType, useDomainContext } from "@contexts/DomainContext"; export async function onShare( address: string, @@ -33,10 +34,12 @@ export async function onShare( export function ReceiveScreen(): JSX.Element { const logger = useLogger(); - const { address } = useWalletContext(); + const { address, evmAddress } = useWalletContext(); const [showToast, setShowToast] = useState(false); const toast = useToast(); + const { domain } = useDomainContext(); const TOAST_DURATION = 2000; + const receiveAddress = domain === DomainType.EVM ? evmAddress : address; const copyToClipboard = useCallback( debounce(() => { @@ -59,7 +62,7 @@ export function ReceiveScreen(): JSX.Element { } else { toast.hideAll(); } - }, [showToast, address]); + }, [showToast, receiveAddress]); return ( {translate( "screens/ReceiveScreen", - "Use QR or Wallet address to receive any tokens (DST) or DFI" + "Scan QR code to receive any dTokens (eg. DUSD,dBTC..) or DFI" )} - + @@ -99,14 +102,14 @@ export function ReceiveScreen(): JSX.Element { style={tailwind("font-normal-v2 text-sm text-center pb-12 px-5")} testID="address_text" > - {address} + {receiveAddress} { copyToClipboard(); - await Clipboard.setStringAsync(address); + await Clipboard.setStringAsync(receiveAddress); }} testID="copy_button" > @@ -141,7 +144,7 @@ export function ReceiveScreen(): JSX.Element { { - await onShare(address, logger); + await onShare(receiveAddress, logger); }} testID="share_button" > diff --git a/shared/translations/languages/de.json b/shared/translations/languages/de.json index b7323ce892..d4319bfc6b 100644 --- a/shared/translations/languages/de.json +++ b/shared/translations/languages/de.json @@ -225,7 +225,7 @@ "Copy": "Kopieren", "Share": "Teilen", "WALLET ADDRESS": "WALLETADRESSE", - "Use QR or Wallet address to receive any tokens (DST) or DFI": "Verwende den QR-Code oder die Wallet-Adresse, um Token (DST) oder DFI zu erhalten", + "Scan QR code to receive any dTokens (eg. DUSD,dBTC..) or DFI": "Scanne den QR-Code, um dToken (z.B. DUSD, dBTC...) oder DFI zu erhalten", "Get DFI": "DFI erwerben" }, "components/toaster": { diff --git a/shared/translations/languages/es.json b/shared/translations/languages/es.json index f6884bf0ed..69e255b30b 100644 --- a/shared/translations/languages/es.json +++ b/shared/translations/languages/es.json @@ -234,7 +234,7 @@ "Copy": "Copiar", "Share": "Compartir", "WALLET ADDRESS": "DIRECCIÓN DE LA BILLETERA", - "Use QR or Wallet address to receive any tokens (DST) or DFI": "Usar QR or direccion de billetera para recibir cualquier token (DST) o DFI", + "Scan QR code to receive any dTokens (eg. DUSD,dBTC..) or DFI": "Scan QR code to receive any dTokens (eg. DUSD,dBTC..) or DFI", "Get DFI": "Get DFI" }, "components/toaster": { diff --git a/shared/translations/languages/fr.json b/shared/translations/languages/fr.json index 3ffc0088e7..80ba8e4f29 100644 --- a/shared/translations/languages/fr.json +++ b/shared/translations/languages/fr.json @@ -235,7 +235,7 @@ "Copy": "Copier", "Share": "Partager", "WALLET ADDRESS": "ADRESSE DU PORTEFEUILLE", - "Use QR or Wallet address to receive any tokens (DST) or DFI": "Utiliser l'adresse QR ou Wallet pour recevoir des tokens (DST) ou des DFI", + "Scan QR code to receive any dTokens (eg. DUSD,dBTC..) or DFI": "Scanner le code QR pour recevoir des dTokens (par exemple DUSD, dBTC..) ou des DFI", "Get DFI": "Obtenir DFI" }, "components/toaster": { diff --git a/shared/translations/languages/it.json b/shared/translations/languages/it.json index 290402aa00..b794a5739f 100644 --- a/shared/translations/languages/it.json +++ b/shared/translations/languages/it.json @@ -236,7 +236,7 @@ "Copy": "Copia", "Share": "Condividi", "WALLET ADDRESS": "INDIRIZZO WALLET", - "Use QR or Wallet address to receive any tokens (DST) or DFI": "Use QR or Wallet address to receive any tokens (DST) or DFI", + "Scan QR code to receive any dTokens (eg. DUSD,dBTC..) or DFI": "扫描二维码以接收任何 dToken(例如 DUSD、dBTC..)或 DFI", "Get DFI": "Get DFI" }, "components/toaster": { diff --git a/shared/translations/languages/zh-Hans.json b/shared/translations/languages/zh-Hans.json index 99295b70c2..4ebf1bfa46 100644 --- a/shared/translations/languages/zh-Hans.json +++ b/shared/translations/languages/zh-Hans.json @@ -225,7 +225,7 @@ "Copy": "复制地址", "Share": "转发地址", "WALLET ADDRESS": "钱包地址", - "Use QR or Wallet address to receive any tokens (DST) or DFI": "Use QR or Wallet address to receive any tokens (DST) or DFI", + "Scan QR code to receive any dTokens (eg. DUSD,dBTC..) or DFI": "扫描二维码以接收任何 dToken(例如 DUSD、dBTC..)或 DFI", "Get DFI": "获得 DFI" }, "components/toaster": { diff --git a/shared/translations/languages/zh-Hant.json b/shared/translations/languages/zh-Hant.json index d0a584f17d..748030a34d 100644 --- a/shared/translations/languages/zh-Hant.json +++ b/shared/translations/languages/zh-Hant.json @@ -225,7 +225,7 @@ "Copy": "複製地址", "Share": "轉發地址", "WALLET ADDRESS": "錢包地址", - "Use QR or Wallet address to receive any tokens (DST) or DFI": "Use QR or Wallet address to receive any tokens (DST) or DFI", + "Scan QR code to receive any dTokens (eg. DUSD,dBTC..) or DFI": "掃描二維碼以接收任何 dToken(例如 DUSD、dBTC..)或 DFI", "Get DFI": "獲得 DFI" }, "components/toaster": {