From e8f2e0392549ae60865ebe4b18394692dacfd90a Mon Sep 17 00:00:00 2001 From: "Alisa | Side.one" Date: Tue, 16 May 2023 00:29:53 +0800 Subject: [PATCH] feat: wallet connect state --- package.json | 2 +- src/layouts/components/NavBarWallet.vue | 6 +++++ src/layouts/components/NavFooter.vue | 10 +++++++- src/stores/useWalletStore.ts | 24 +++++++++++++---- src/types/distribution.ts | 34 +++++++++++++++---------- yarn.lock | 8 +++--- 6 files changed, 59 insertions(+), 25 deletions(-) diff --git a/package.json b/package.json index c1abf18a..2a51fa60 100644 --- a/package.json +++ b/package.json @@ -40,7 +40,7 @@ "md-editor-v3": "^2.8.1", "numeral": "^2.0.6", "osmojs": "^14.0.0-rc.0", - "ping-widget": "^0.0.8", + "ping-widget": "^0.0.9", "pinia": "^2.0.28", "postcss": "^8.4.23", "prismjs": "^1.29.0", diff --git a/src/layouts/components/NavBarWallet.vue b/src/layouts/components/NavBarWallet.vue index ead33231..558ab460 100644 --- a/src/layouts/components/NavBarWallet.vue +++ b/src/layouts/components/NavBarWallet.vue @@ -25,6 +25,12 @@ const tipMsg = computed(() => { ? { class: 'error', msg: 'Copy Error!' } : { class: 'success', msg: 'Copy Success!' }; }); + +const addressChange = computed(() => { + return walletStore?.currentAddress || walletStore?.walletIsConnected + ? true + : false; +});