From f407110e957dda53af5bf36d2a545dcf6cde0c09 Mon Sep 17 00:00:00 2001 From: Art Date: Wed, 15 Mar 2023 09:24:20 +0100 Subject: [PATCH] chore(environment): etherscan link (#3193) --- .../app/routes/validators/validators-page.tsx | 4 +- .../src/routes/tranches/tranche.tsx | 32 +++++--------- .../hooks/use-ethereum-transaction-toasts.tsx | 24 +++------- libs/assets/src/lib/asset-details-table.tsx | 4 +- .../deposits/src/lib/approve-notification.tsx | 10 ++--- libs/deposits/src/lib/deposits-table.tsx | 13 ++---- libs/deposits/src/lib/faucet-notification.tsx | 13 +++--- .../src/components/contract-address-link.tsx | 13 ------ .../src/components/etherscan-link.tsx | 38 ++++++++++++++++ libs/environment/src/components/index.ts | 2 +- libs/environment/src/hooks/use-links.ts | 1 + .../dialog-rows.tsx | 18 ++++---- libs/withdraws/src/lib/withdrawals-table.tsx | 44 +++++-------------- 13 files changed, 91 insertions(+), 125 deletions(-) delete mode 100644 libs/environment/src/components/contract-address-link.tsx create mode 100644 libs/environment/src/components/etherscan-link.tsx diff --git a/apps/explorer/src/app/routes/validators/validators-page.tsx b/apps/explorer/src/app/routes/validators/validators-page.tsx index e9ee92a4d..dcaab81b0 100644 --- a/apps/explorer/src/app/routes/validators/validators-page.tsx +++ b/apps/explorer/src/app/routes/validators/validators-page.tsx @@ -21,7 +21,7 @@ import { JsonViewerDialog } from '../../components/dialogs/json-viewer-dialog'; import { PageTitle } from '../../components/page-helpers/page-title'; import BigNumber from 'bignumber.js'; import { - ContractAddressLink, + EtherscanLink, DApp, TOKEN_VALIDATOR, useLinks, @@ -224,7 +224,7 @@ export const ValidatorsPage = () => {
{t('Ethereum address')}
- {' '} + {' '}