From 581fc8b5da1c06a77e5500d1da454cde47e58e24 Mon Sep 17 00:00:00 2001 From: donnyquixotic Date: Thu, 22 Feb 2024 17:50:05 -0600 Subject: [PATCH] fix: network explorer env reference, remove export --- src/components/TransactionTable.vue | 2 +- src/pages/BlockPage.vue | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/src/components/TransactionTable.vue b/src/components/TransactionTable.vue index 9b415478e..128d175f8 100644 --- a/src/components/TransactionTable.vue +++ b/src/components/TransactionTable.vue @@ -18,7 +18,7 @@ const route = useRoute(); const router = useRouter(); const { t: $t } = useI18n(); -export interface Props { +interface Props { title: string; filter?: object initialPageSize?: number, diff --git a/src/pages/BlockPage.vue b/src/pages/BlockPage.vue index 01dc463ee..2f57b4454 100644 --- a/src/pages/BlockPage.vue +++ b/src/pages/BlockPage.vue @@ -33,9 +33,10 @@ function nextBlock() { router.push({ name: 'block', params: { block: parseInt(block.value) + 1 } }); } -function visitNativeBlockExplorer(extraData) { +// eslint-disable-next-line @typescript-eslint/no-explicit-any +function visitNativeBlockExplorer(extraData: any) { console.log('visitNativeBlockExplorer()', extraData); - window.open(`https://explorer-test.telos.net/block/${extraData}`, '_blank'); + window.open(`${process.env.NETWORK_EXPLORER}/block/${extraData}`, '_blank'); } const loadBlockData = async () => {