Skip to content

Commit

Permalink
Merge pull request #508 from nervina-labs/staging
Browse files Browse the repository at this point in the history
release 2022-03-29
  • Loading branch information
yuche authored Mar 29, 2022
2 parents df60c89 + 5c32d3b commit 40da5d6
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 5 deletions.
2 changes: 1 addition & 1 deletion public/manifest.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"short_name": "秘宝账户",
"name": "秘宝账户",
"version": "2.2.2",
"version": "2.2.3",
"icons": [
{
"src": "icons/16.png",
Expand Down
1 change: 1 addition & 0 deletions src/hooks/useTrack.ts
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ export const actions = {

export const trackLabels = {
login: {
flashsigner: '通过flashsigner登录',
unipass: '通过unipass登录',
eth: '通过以太坊环境登录',
},
Expand Down
2 changes: 1 addition & 1 deletion src/service-worker.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ clientsClaim()
// even if you decide not to use precaching. See https://cra.link/PWA
precacheAndRoute(self.__WB_MANIFEST)
const log = console.log
log('Verion: v2.2.2')
log('Verion: v2.2.3')

// Set up App Shell-style routing, so that all navigation requests
// are fulfilled with your index.html shell. Learn more at
Expand Down
11 changes: 8 additions & 3 deletions src/views/Login/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -258,6 +258,13 @@ export const Login: React.FC = () => {

useTrackDidMount('login')

const loginFlashsigner = useTrackEvent(
'login',
'click',
trackLabels.login.flashsigner,
loginBtnOnClick.bind(null, WalletType.Flashsigner)
)

const loginUnipass = useTrackEvent(
'login',
'click',
Expand Down Expand Up @@ -395,9 +402,7 @@ export const Login: React.FC = () => {
isWalletConnectLoging ||
isFlashsignerLogin
}
onClick={async () =>
await loginBtnOnClick(WalletType.Flashsigner)
}
onClick={loginFlashsigner}
variant={IS_IMTOKEN ? 'outline' : 'solid'}
size="lg"
>
Expand Down

1 comment on commit 40da5d6

@vercel
Copy link

@vercel vercel bot commented on 40da5d6 Mar 29, 2022

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:

Please sign in to comment.