Skip to content

Commit

Permalink
chore: set default width height
Browse files Browse the repository at this point in the history
  • Loading branch information
nguyenhuugiatri committed Nov 6, 2024
1 parent 3d8dadb commit 430260a
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions packages/waypoint/deposit/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,9 @@ type StartDepositParams = {
cryptoCurrency?: string
}

const DEPOSIT_POPUP_WIDTH = 500
const DEPOSIT_POPUP_HEIGHT = 728

export class Deposit {
private readonly clientId: string
private readonly waypointOrigin: string
Expand Down Expand Up @@ -56,8 +59,8 @@ export class Deposit {
}

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

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

0 comments on commit 430260a

Please sign in to comment.