From c489591f577bb070fa8b677c6a541a4f2f55c22a Mon Sep 17 00:00:00 2001 From: Ilias Trichopoulos Date: Mon, 3 Feb 2025 15:53:41 +0100 Subject: [PATCH] Rename callback --- apps/mobile-wallet/src/features/buy/BuyModal.tsx | 4 ++-- apps/mobile-wallet/src/features/buy/useOnramperUrl.ts | 3 +-- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/apps/mobile-wallet/src/features/buy/BuyModal.tsx b/apps/mobile-wallet/src/features/buy/BuyModal.tsx index 523ab020c..5f78b1cc5 100644 --- a/apps/mobile-wallet/src/features/buy/BuyModal.tsx +++ b/apps/mobile-wallet/src/features/buy/BuyModal.tsx @@ -23,7 +23,7 @@ export interface BuyModalProps { receiveAddressHash: AddressHash } -const CLOSE_BANXA_TAB_DEEP_LINK = 'alephium://close-banxa-tab' +const CLOSE_ONRAMP_TAB_DEEP_LINK = 'alephium://close-onramp-tab' const BuyModal = withModal(({ id, receiveAddressHash }) => { const { t } = useTranslation() @@ -35,7 +35,7 @@ const BuyModal = withModal(({ id, receiveAddressHash }) => { const deeplink = useURL() useEffect(() => { - if (deeplink?.includes(CLOSE_BANXA_TAB_DEEP_LINK)) { + if (deeplink?.includes(CLOSE_ONRAMP_TAB_DEEP_LINK)) { dispatch(closeModal({ id })) dismissBrowser() } diff --git a/apps/mobile-wallet/src/features/buy/useOnramperUrl.ts b/apps/mobile-wallet/src/features/buy/useOnramperUrl.ts index 6d3762bfe..fb9ce7985 100644 --- a/apps/mobile-wallet/src/features/buy/useOnramperUrl.ts +++ b/apps/mobile-wallet/src/features/buy/useOnramperUrl.ts @@ -12,13 +12,12 @@ const useOnramperUrl = (receiveAddressHash: AddressHash) => { 'https://buy.onramper.com/' + '?mode=buy' + `&onlyCryptos=${ALPH_CODE}` + - `&successRedirectUrl=${encodeURIComponent('https://alephium.org/banxa-callback/')}` + + `&successRedirectUrl=${encodeURIComponent('https://alephium.org/onramp-callback/')}` + `&wallets=${ALPH_CODE}:${receiveAddressHash}` + `&themeName=${theme.name}` + `&containerColor=${theme.bg.back1.slice(1)}` + `&primaryTextColor=${theme.font.primary.slice(1)}` + `&primaryColor=${theme.global.accent.slice(1)}` + - `&secondaryColor=${theme.global.complementary.slice(1)}` + `&apiKey=${ONRAMPER_CLIENT_UUID}` ) }