diff --git a/dapp/src/components/TransactionHistory/Table/Cell/components/BlockExplorer.tsx b/dapp/src/components/TransactionHistory/Table/Cell/components/BlockExplorer.tsx index e7f833602..eeb420ac3 100644 --- a/dapp/src/components/TransactionHistory/Table/Cell/components/BlockExplorer.tsx +++ b/dapp/src/components/TransactionHistory/Table/Cell/components/BlockExplorer.tsx @@ -1,5 +1,5 @@ import React from "react" -import { Chain, ExplorerDataType } from "#/types" +import { Chain } from "#/types" import { BLOCK_EXPLORER } from "#/constants" import ViewInBlockExplorer from "#/components/shared/ViewInBlockExplorer" import SimpleText from "./SimpleText" @@ -9,7 +9,7 @@ function BlockExplorer({ txHash, chain }: { txHash?: string; chain: Chain }) { return ( diff --git a/dapp/src/types/chain.ts b/dapp/src/types/chain.ts index 6484a7280..03148b9fc 100644 --- a/dapp/src/types/chain.ts +++ b/dapp/src/types/chain.ts @@ -1,5 +1,3 @@ export type Chain = "bitcoin" | "ethereum" -export enum ExplorerDataType { - TRANSACTION = "transaction", -} +export type ExplorerDataType = "transaction" diff --git a/dapp/src/utils/chain.ts b/dapp/src/utils/chain.ts index 0e01e14b6..1c75ff356 100644 --- a/dapp/src/utils/chain.ts +++ b/dapp/src/utils/chain.ts @@ -7,7 +7,7 @@ export const createBlockExplorerLink = ( type: ExplorerDataType, ) => { switch (type) { - case ExplorerDataType.TRANSACTION: + case "transaction": default: { return `${prefix}/tx/${id}` }