add background image to app

This commit is contained in:
RcleydsonR
2022-11-16 01:30:23 -03:00
parent fefebcf91e
commit 85d76c9e42
5 changed files with 67 additions and 27 deletions

View File

@@ -14,9 +14,12 @@ const connectMetaMask = () => {
const formatWalletAddress = (): string => {
const walletAddressLength = walletAddress.value.length;
const initialText = walletAddress.value.substring(0, 5);
const finalText = walletAddress.value.substring(walletAddressLength - 6, walletAddressLength - 1);
const finalText = walletAddress.value.substring(
walletAddressLength - 6,
walletAddressLength - 1
);
return `${initialText} ... ${finalText}`;
}
};
</script>
<template>
@@ -39,7 +42,7 @@ const formatWalletAddress = (): string => {
Conectar carteira
</button>
<span v-if="walletAddress" class="text-gray-50">
{{formatWalletAddress()}}
{{ formatWalletAddress() }}
</span>
</div>
</header>