From 746cb8e0c1c4e7792a640ecbf3ed49be90ca0dff Mon Sep 17 00:00:00 2001 From: Jack Hamer Date: Wed, 3 Jan 2024 17:43:24 +0200 Subject: [PATCH] feat: show deposit status --- .env | 2 +- components/common/button/Button.vue | 2 +- .../transaction/TransactionHashButton.vue | 88 +++++++++++++++++++ .../transaction/TransactionProgress.vue | 57 ++++++++---- .../lineItem/TransactionLineItem.vue | 2 +- .../transaction/summary/AddressEntry.vue | 11 ++- composables/useInterval.ts | 2 +- store/ethereumBalance.ts | 39 +++++--- views/transactions/Deposit.vue | 38 +++++--- views/transactions/Transfer.vue | 3 +- 10 files changed, 191 insertions(+), 53 deletions(-) create mode 100644 components/transaction/TransactionHashButton.vue diff --git a/.env b/.env index 72d0a6205..b5408b577 100644 --- a/.env +++ b/.env @@ -1,2 +1,2 @@ WALLET_CONNECT_PROJECT_ID=373a8744ceaac00934aec708a3fceea6 -ANKR_TOKEN= \ No newline at end of file +ANKR_TOKEN=d39966271ddadd0313304908744721c7c9c0c83e2785d73602990c8b46267f83 \ No newline at end of file diff --git a/components/common/button/Button.vue b/components/common/button/Button.vue index acf1e1c5d..77d22623f 100644 --- a/components/common/button/Button.vue +++ b/components/common/button/Button.vue @@ -54,7 +54,7 @@ defineProps({ } } &light { - @apply bg-neutral-200 dark:bg-neutral-800; + @apply bg-neutral-200 transition disabled:opacity-70 dark:bg-neutral-800; &:enabled, &:is(a, label) { &:not([aria-disabled="true"]) { diff --git a/components/transaction/TransactionHashButton.vue b/components/transaction/TransactionHashButton.vue new file mode 100644 index 000000000..58a8b78ef --- /dev/null +++ b/components/transaction/TransactionHashButton.vue @@ -0,0 +1,88 @@ + + + + + diff --git a/components/transaction/TransactionProgress.vue b/components/transaction/TransactionProgress.vue index f28e4bce0..b7bc66dd4 100644 --- a/components/transaction/TransactionProgress.vue +++ b/components/transaction/TransactionProgress.vue @@ -55,18 +55,21 @@ + +
+ +
+
+ +
- - Explorer - + +
Value: @@ -81,8 +84,6 @@