Skip to content

Commit

Permalink
fix: jump in button and handleClickBalance (#483)
Browse files Browse the repository at this point in the history
  • Loading branch information
braianj authored Jan 4, 2024
1 parent 298803e commit 89687a0
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/components/UserMenu/UserMenu.css
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
}

.dcl .user-menu__jump-in {
padding: 5px 32px;
padding: 14px 32px;
margin-left: 24px;
}

Expand Down
9 changes: 8 additions & 1 deletion src/components/UserMenu/UserMenu.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,14 @@ export const UserMenu = React.memo((props: UserMenuProps) => {
eventTrackingName: UserMenuEventId.BALANCE
})

onClickBalance(event, network)
setTimeout(
() => {
onClickBalance
? onClickBalance(event, network)
: window.open(config.get('ACCOUNT_URL'), '_blank', 'noopener')
},
onClickUserMenuItem ? 300 : 0
)
},
[onClickBalance, onClickUserMenuItem, trackingId]
)
Expand Down

1 comment on commit 89687a0

@vercel
Copy link

@vercel vercel bot commented on 89687a0 Jan 4, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

decentraland-ui – ./

decentraland-ui-git-master-decentraland1.vercel.app
decentraland-ui-decentraland1.vercel.app

Please sign in to comment.