fix: ping-connect-wallet display hierarchy problem

This commit is contained in:
Alisa | Side.one 2023-05-11 01:18:30 +08:00
parent ec32cd3105
commit a08f467857
3 changed files with 19 additions and 7 deletions

View File

@ -1,14 +1,17 @@
<script setup lang="ts"> <script setup lang="ts">
import { ref } from 'vue'; import { useWalletStore } from '@/stores';
import { useBlockchain, useWalletStore } from '@/stores';
const walletStore = useWalletStore()
const walletStore = useWalletStore();
</script> </script>
<template> <template>
<div> <div>
<span v-if="walletStore.currentAddress">{{ walletStore.currentAddress }}</span> <span v-if="walletStore.currentAddress">{{
<ping-connect-wallet v-else class="mt-5" :chain-id="'juno-1'" :hd-path="`m/44'/118/0'/0/0`" /> walletStore.currentAddress
}}</span>
<label v-else for="PingConnectWallet" class="btn btn-sm ml-4 ping-connect-btn"
>Connect Wallet</label
>
</div> </div>
</template> </template>

View File

@ -31,4 +31,13 @@
> >
</div> </div>
</footer> </footer>
<div class="footer-modal">
<ping-connect-wallet :chain-id="'juno-1'" :hd-path="`m/44'/118/0'/0/0`" />
</div>
</template> </template>
<style>
.footer-modal .ping-connect-btn {
display: none;
}
</style>

View File

@ -6711,7 +6711,7 @@ pify@^3.0.0:
"ping-widget@git+https://github.com/ping-pub/widget.git": "ping-widget@git+https://github.com/ping-pub/widget.git":
version "0.0.5" version "0.0.5"
resolved "git+https://github.com/ping-pub/widget.git#2c4bf89ba35ea6cb6ecbfe07e32f70ba8089e9bc" resolved "git+https://github.com/ping-pub/widget.git#7ce4842101089476d915027f58021088afef9cb8"
dependencies: dependencies:
"@cosmjs/amino" "^0.30.1" "@cosmjs/amino" "^0.30.1"
"@cosmjs/ledger-amino" "^0.30.1" "@cosmjs/ledger-amino" "^0.30.1"