feat: add teleport

This commit is contained in:
Alisa | Side.one
2023-05-17 00:02:59 +08:00
parent ea4fed9b4f
commit 45a7d04748
3 changed files with 37 additions and 18 deletions
+16 -1
View File
@@ -89,6 +89,12 @@ const color = computed(() => {
return 'text-red-600';
}
});
const endpoint = 'https://juno-api.polkachu.com';
const params = JSON.stringify({
proposal_id: '1',
validator_address: 'junovaloper1jxv0u20scum4trha72c7ltfgfqef6nscm9pmg2',
chain_name: 'juno',
});
</script>
<template>
@@ -350,8 +356,17 @@ const color = computed(() => {
<RouterLink to="/wallet/receive" class="btn btn-info text-white"
>Receive</RouterLink
>
<button class="btn btn-primary text-white">Convert</button>
<label for="PingTokenConvert" class="btn btn-primary text-white"
>Convert</label
>
</div>
<Teleport to="body">
<ping-token-convert
chain-name="juno"
:endpoint="endpoint"
:params="params"
></ping-token-convert>
</Teleport>
</div>
</div>
</template>