From 345213a31c8aa7da78d5ff28e0287f3e892d1cfd Mon Sep 17 00:00:00 2001 From: Daniel Date: Mon, 25 Nov 2024 14:57:51 -0600 Subject: [PATCH] AddressOverview,Sidebar,MobileActionBar: use CryptoCurrency enum instead of strings --- src/components/MobileActionBar.vue | 2 +- src/components/layouts/AddressOverview.vue | 68 +++++++++++++--------- src/components/layouts/Sidebar.vue | 8 ++- 3 files changed, 45 insertions(+), 33 deletions(-) diff --git a/src/components/MobileActionBar.vue b/src/components/MobileActionBar.vue index 9bb0fa959..34db4dbe5 100644 --- a/src/components/MobileActionBar.vue +++ b/src/components/MobileActionBar.vue @@ -82,7 +82,7 @@ export default defineComponent({ const { config } = useConfig(); const sendDisabled = computed(() => { - if (activeCurrency.value === 'nim' && config.disableNetworkInteraction) return true; + if (config.disableNetworkInteraction && activeCurrency.value === CryptoCurrency.NIM) return true; return context.root.$route.path !== '/' && nimOrBtcOrStable( !activeAddressInfo.value || !activeAddressInfo.value.balance, !btcBalance.value, diff --git a/src/components/layouts/AddressOverview.vue b/src/components/layouts/AddressOverview.vue index 2005e8867..fe24481c2 100644 --- a/src/components/layouts/AddressOverview.vue +++ b/src/components/layouts/AddressOverview.vue @@ -14,7 +14,7 @@
-
{{activeAddressInfo.label}}
-
{{ $t('Bitcoin') }}
-
{{ $t('USD Coin') }}
+
+ {{ activeAddressInfo.label }} +
+
+ {{ $t('Bitcoin') }} +
+
+ {{ $t('USD Coin') }} +
{{ $t('Tether USD') }}
- - - + + @@ -130,7 +138,7 @@
-
@@ -140,7 +148,7 @@ - - + - - @@ -169,13 +178,13 @@
-