Skip to content

Commit

Permalink
chore: update popup size
Browse files Browse the repository at this point in the history
  • Loading branch information
nguyenhuugiatri committed Nov 6, 2024
1 parent 711532f commit 3d8dadb
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions packages/waypoint/deposit/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ export class Deposit {
redirectUri = window.location.origin,
clientId,
} = config

this.waypointOrigin = waypointOrigin
this.clientId = clientId
this.redirectUri = redirectUri
Expand All @@ -44,14 +45,22 @@ export class Deposit {
start = async (params?: StartDepositParams) => {
const response = await this.communicateHelper.sendRequest<OrderSuccessMessage>(state => {
const { walletAddress, fiatCurrency, cryptoCurrency } = params ?? {}
return openPopup(`${this.waypointOrigin}/client/${this.clientId}/deposit`, {

const query = {
state,
origin: this.redirectUri,
redirect_uri: this.redirectUri,
wallet_address: walletAddress,
fiat_currency: fiatCurrency,
crypto_currency: cryptoCurrency,
})
}

const popupConfig = {
width: 500,
height: 728,
}

return openPopup(`${this.waypointOrigin}/client/${this.clientId}/deposit`, query, popupConfig)
})

return {
Expand Down

0 comments on commit 3d8dadb

Please sign in to comment.