From 1edaf5dd1ee813836fb3952b89c13168eb674bc5 Mon Sep 17 00:00:00 2001 From: RcleydsonR Date: Wed, 14 Dec 2022 20:32:41 -0300 Subject: [PATCH] emit event to go back to home view from search screen --- src/components/ListComponent.vue | 17 ++++++++++------- src/components/TopBar.vue | 1 - src/views/HomeView.vue | 1 + 3 files changed, 11 insertions(+), 8 deletions(-) diff --git a/src/components/ListComponent.vue b/src/components/ListComponent.vue index ff4896b..8f6597a 100644 --- a/src/components/ListComponent.vue +++ b/src/components/ListComponent.vue @@ -8,6 +8,9 @@ const props = defineProps({ tokenAmount: Number, }); +// Emits +const emit = defineEmits(["makeAnotherTransaction"]); + const formatEventsAmount = (amount: any) => { try { const formated = blockchain.formatBigNumber(amount); @@ -52,7 +55,7 @@ const openEtherscanUrl = (url: string) => { @@ -73,12 +76,12 @@ const openEtherscanUrl = (url: string) => { v-for="release in lastWalletReleaseTransactions" :key="release?.blockNumber" > -

+ {{ formatEventsAmount(release?.args.amount) }} BRZ -

-

+ + {{ "Compra" }} -

+
-

Etherscan

+ Etherscan Redirect image
@@ -134,7 +137,7 @@ p { } .last-release-info { - @apply font-medium text-base; + @apply font-medium text-base text-gray-900; } input[type="number"] { diff --git a/src/components/TopBar.vue b/src/components/TopBar.vue index ca53687..d74fcf7 100644 --- a/src/components/TopBar.vue +++ b/src/components/TopBar.vue @@ -37,7 +37,6 @@ const formatWalletBalance = (): string => { src="@/assets/logo.svg" width="75" height="75" - @load="connectMetaMask()" />
diff --git a/src/views/HomeView.vue b/src/views/HomeView.vue index e43914c..7627d11 100644 --- a/src/views/HomeView.vue +++ b/src/views/HomeView.vue @@ -109,6 +109,7 @@ const releaseTransaction = async ({ e2eId }: any) => { v-if="!loadingRelease" :last-wallet-release-transactions="lastWalletReleaseTransactions" :tokenAmount="tokenAmount" + @make-another-transaction="flowStep = Step.Search" />