Skip to content

Commit

Permalink
Rename callback
Browse files Browse the repository at this point in the history
  • Loading branch information
nop33 committed Feb 3, 2025
1 parent 05d4031 commit c489591
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
4 changes: 2 additions & 2 deletions apps/mobile-wallet/src/features/buy/BuyModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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<BuyModalProps>(({ id, receiveAddressHash }) => {
const { t } = useTranslation()
Expand All @@ -35,7 +35,7 @@ const BuyModal = withModal<BuyModalProps>(({ 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()
}
Expand Down
3 changes: 1 addition & 2 deletions apps/mobile-wallet/src/features/buy/useOnramperUrl.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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}`
)
}
Expand Down

0 comments on commit c489591

Please sign in to comment.