From ec4cca8a82db2a88e8a9bf4eae27f0179c0aef1f Mon Sep 17 00:00:00 2001 From: Rafal Czajkowski Date: Wed, 26 Jul 2023 15:27:58 +0200 Subject: [PATCH] Fix typo `transacion` -> `transaction` --- src/components/Modal/tBTC/InitiateUnminting.tsx | 2 +- .../{TransacionDetails => TransactionDetails}/index.tsx | 0 src/hooks/useAddErc20ToMetamask.ts | 2 +- src/pages/tBTC/Bridge/DepositDetails.tsx | 2 +- src/pages/tBTC/Bridge/UnmintDetails.tsx | 4 ++-- .../tBTC/Bridge/components/MintingTransactionDetails.tsx | 2 +- src/threshold-ts/tbtc/index.ts | 4 ++-- src/threshold-ts/utils/bitcoin.ts | 2 +- 8 files changed, 9 insertions(+), 9 deletions(-) rename src/components/{TransacionDetails => TransactionDetails}/index.tsx (100%) diff --git a/src/components/Modal/tBTC/InitiateUnminting.tsx b/src/components/Modal/tBTC/InitiateUnminting.tsx index fbb4e5210..adc1a1b28 100644 --- a/src/components/Modal/tBTC/InitiateUnminting.tsx +++ b/src/components/Modal/tBTC/InitiateUnminting.tsx @@ -30,7 +30,7 @@ import { InlineTokenBalance } from "../../TokenBalance" import { TransactionDetailsAmountItem, TransactionDetailsItem, -} from "../../TransacionDetails" +} from "../../TransactionDetails" import ModalCloseButton from "../ModalCloseButton" import withBaseModal from "../withBaseModal" diff --git a/src/components/TransacionDetails/index.tsx b/src/components/TransactionDetails/index.tsx similarity index 100% rename from src/components/TransacionDetails/index.tsx rename to src/components/TransactionDetails/index.tsx diff --git a/src/hooks/useAddErc20ToMetamask.ts b/src/hooks/useAddErc20ToMetamask.ts index e754b1c5a..380ef2aa3 100644 --- a/src/hooks/useAddErc20ToMetamask.ts +++ b/src/hooks/useAddErc20ToMetamask.ts @@ -25,7 +25,7 @@ const useAddErc20ToMetamask = (tokenContract?: Contract | null) => { } // Based on the docs, the result from request should be `boolean` but it // returns an object in Chrome. On Firefox browser, this request blocks - // the MM provider and the dapp can't trigger transacion and fetch + // the MM provider and the dapp can't trigger transaction and fetch // on-chain data. Also the MM provider doesn't return any result from this // request. On Chrome browser, this request returns a result as an object, // even if the user does not make any interaction in the MM popup. diff --git a/src/pages/tBTC/Bridge/DepositDetails.tsx b/src/pages/tBTC/Bridge/DepositDetails.tsx index 87990de17..563bdcbfa 100644 --- a/src/pages/tBTC/Bridge/DepositDetails.tsx +++ b/src/pages/tBTC/Bridge/DepositDetails.tsx @@ -70,7 +70,7 @@ import { PageComponent } from "../../../types" import { CurveFactoryPoolId, ExternalHref } from "../../../enums" import { ExternalPool } from "../../../components/tBTC/ExternalPool" import { useFetchExternalPoolData } from "../../../hooks/useFetchExternalPoolData" -import { TransactionDetailsAmountItem } from "../../../components/TransacionDetails" +import { TransactionDetailsAmountItem } from "../../../components/TransactionDetails" import { BridgeProcessDetailsPageSkeleton } from "./components/BridgeProcessDetailsPageSkeleton" export const DepositDetails: PageComponent = () => { diff --git a/src/pages/tBTC/Bridge/UnmintDetails.tsx b/src/pages/tBTC/Bridge/UnmintDetails.tsx index a24df0af9..fc5b72f2d 100644 --- a/src/pages/tBTC/Bridge/UnmintDetails.tsx +++ b/src/pages/tBTC/Bridge/UnmintDetails.tsx @@ -28,7 +28,7 @@ import { import { TransactionDetailsAmountItem, TransactionDetailsItem, -} from "../../../components/TransacionDetails" +} from "../../../components/TransactionDetails" import { InlineTokenBalance } from "../../../components/TokenBalance" import ViewInBlockExplorer, { Chain as ViewInBlockExplorerChain, @@ -260,7 +260,7 @@ export const UnmintDetails: PageComponent = () => { {`${time.days}d ${time.hours}h ${time.minutes}m`} - Transacion History + Transaction History {transactions .filter((item) => !!item.txHash) diff --git a/src/pages/tBTC/Bridge/components/MintingTransactionDetails.tsx b/src/pages/tBTC/Bridge/components/MintingTransactionDetails.tsx index f66d43683..607db7b50 100644 --- a/src/pages/tBTC/Bridge/components/MintingTransactionDetails.tsx +++ b/src/pages/tBTC/Bridge/components/MintingTransactionDetails.tsx @@ -2,7 +2,7 @@ import { List } from "@threshold-network/components" import { TransactionDetailsAmountItem, TransactionDetailsItem, -} from "../../../../components/TransacionDetails" +} from "../../../../components/TransactionDetails" import { useTbtcState } from "../../../../hooks/useTbtcState" import shortenAddress from "../../../../utils/shortenAddress" diff --git a/src/threshold-ts/tbtc/index.ts b/src/threshold-ts/tbtc/index.ts index 45735dc50..b4b15dd6c 100644 --- a/src/threshold-ts/tbtc/index.ts +++ b/src/threshold-ts/tbtc/index.ts @@ -1028,10 +1028,10 @@ export class TBTC implements ITBTC { } getBitcoinTransaction = async ( - transacionHash: string + transactionHash: string ): Promise => { return this._bitcoinClient.getTransaction( - TransactionHash.from(transacionHash) + TransactionHash.from(transactionHash) ) } diff --git a/src/threshold-ts/utils/bitcoin.ts b/src/threshold-ts/utils/bitcoin.ts index 1a5953ef5..31d90e391 100644 --- a/src/threshold-ts/utils/bitcoin.ts +++ b/src/threshold-ts/utils/bitcoin.ts @@ -40,7 +40,7 @@ export const isPayToScriptHashTypeAddress = (address: string): boolean => { * Bitcoin transaction hash is stored on Ethereum in native Bitcoin * little-endian format but to get the confirmations for this transaction we * need to reverse its hash. - * @param {string} txHash Transacion hash as string. + * @param {string} txHash Transaction hash as string. * @return {TransactionHash} Reversed transaction hash. */ export const reverseTxHash = (txHash: string): TransactionHash => {