From a774e85ea0e1fca5c5398bee803a87ad189803f2 Mon Sep 17 00:00:00 2001 From: Willian Mitsuda Date: Sun, 8 Aug 2021 03:51:21 -0300 Subject: [PATCH] For some reason it is needed for tree shaking --- src/Block.tsx | 2 +- src/ConnectionErrorPanel.tsx | 8 +++----- src/Home.tsx | 2 +- src/PriceBox.tsx | 2 +- src/TokenTransferItem.tsx | 2 +- src/block/NavBlock.tsx | 6 ++---- src/components/Copy.tsx | 5 +++-- src/components/DecoratedAddressLink.tsx | 12 +++++------- src/components/ExternalLink.tsx | 2 +- src/components/InternalCreate.tsx | 2 +- src/components/InternalSelfDestruct.tsx | 2 +- src/components/InternalTransfer.tsx | 2 +- src/components/Nonce.tsx | 2 +- src/components/Timestamp.tsx | 2 +- src/components/TransactionDirection.tsx | 8 +++----- src/search/TransactionItem.tsx | 2 +- src/special/london/Blocks.tsx | 12 +++++------- src/transaction/Details.tsx | 8 +++----- src/transaction/RewardSplit.tsx | 3 ++- 19 files changed, 37 insertions(+), 47 deletions(-) diff --git a/src/Block.tsx b/src/Block.tsx index 298ef01..735cf03 100644 --- a/src/Block.tsx +++ b/src/Block.tsx @@ -2,7 +2,7 @@ import React, { useEffect, useMemo, useContext } from "react"; import { useParams, NavLink } from "react-router-dom"; import { BigNumber, ethers } from "ethers"; import { FontAwesomeIcon } from "@fortawesome/react-fontawesome"; -import { faBurn } from "@fortawesome/free-solid-svg-icons"; +import { faBurn } from "@fortawesome/free-solid-svg-icons/faBurn"; import StandardFrame from "./StandardFrame"; import StandardSubtitle from "./StandardSubtitle"; import NavBlock from "./block/NavBlock"; diff --git a/src/ConnectionErrorPanel.tsx b/src/ConnectionErrorPanel.tsx index 47b1584..80a8205 100644 --- a/src/ConnectionErrorPanel.tsx +++ b/src/ConnectionErrorPanel.tsx @@ -1,10 +1,8 @@ import React from "react"; import { FontAwesomeIcon } from "@fortawesome/react-fontawesome"; -import { - faClock, - faCheckCircle, - faTimesCircle, -} from "@fortawesome/free-solid-svg-icons"; +import { faClock } from "@fortawesome/free-solid-svg-icons/faClock"; +import { faCheckCircle } from "@fortawesome/free-solid-svg-icons/faCheckCircle"; +import { faTimesCircle } from "@fortawesome/free-solid-svg-icons/faTimesCircle"; import { ConnectionStatus } from "./types"; import { OtterscanConfig } from "./useConfig"; diff --git a/src/Home.tsx b/src/Home.tsx index 9bee0e9..9a7bce0 100644 --- a/src/Home.tsx +++ b/src/Home.tsx @@ -2,7 +2,7 @@ import React, { useState, useContext } from "react"; import { NavLink, useHistory } from "react-router-dom"; import { ethers } from "ethers"; import { FontAwesomeIcon } from "@fortawesome/react-fontawesome"; -import { faBurn } from "@fortawesome/free-solid-svg-icons"; +import { faBurn } from "@fortawesome/free-solid-svg-icons/faBurn"; import Logo from "./Logo"; import Timestamp from "./components/Timestamp"; import { RuntimeContext } from "./useRuntime"; diff --git a/src/PriceBox.tsx b/src/PriceBox.tsx index af5e461..e69e323 100644 --- a/src/PriceBox.tsx +++ b/src/PriceBox.tsx @@ -1,7 +1,7 @@ import React, { useState, useEffect, useMemo, useContext } from "react"; import { ethers } from "ethers"; import { FontAwesomeIcon } from "@fortawesome/react-fontawesome"; -import { faGasPump } from "@fortawesome/free-solid-svg-icons"; +import { faGasPump } from "@fortawesome/free-solid-svg-icons/faGasPump"; import AggregatorV3Interface from "@chainlink/contracts/abi/v0.8/AggregatorV3Interface.json"; import { RuntimeContext } from "./useRuntime"; import { formatValue } from "./components/formatter"; diff --git a/src/TokenTransferItem.tsx b/src/TokenTransferItem.tsx index 92ec6ee..a093b7f 100644 --- a/src/TokenTransferItem.tsx +++ b/src/TokenTransferItem.tsx @@ -1,6 +1,6 @@ import React from "react"; import { FontAwesomeIcon } from "@fortawesome/react-fontawesome"; -import { faCaretRight } from "@fortawesome/free-solid-svg-icons"; +import { faCaretRight } from "@fortawesome/free-solid-svg-icons/faCaretRight"; import AddressHighlighter from "./components/AddressHighlighter"; import ValueHighlighter from "./components/ValueHighlighter"; import DecoratedAddressLink from "./components/DecoratedAddressLink"; diff --git a/src/block/NavBlock.tsx b/src/block/NavBlock.tsx index 32a1dee..b5e0db1 100644 --- a/src/block/NavBlock.tsx +++ b/src/block/NavBlock.tsx @@ -1,10 +1,8 @@ import React from "react"; import { ethers } from "ethers"; import { FontAwesomeIcon } from "@fortawesome/react-fontawesome"; -import { - faChevronLeft, - faChevronRight, -} from "@fortawesome/free-solid-svg-icons"; +import { faChevronLeft } from "@fortawesome/free-solid-svg-icons/faChevronLeft"; +import { faChevronRight } from "@fortawesome/free-solid-svg-icons/faChevronRight"; import NavButton from "./NavButton"; type NavBlockProps = { diff --git a/src/components/Copy.tsx b/src/components/Copy.tsx index 30f18b3..86e902d 100644 --- a/src/components/Copy.tsx +++ b/src/components/Copy.tsx @@ -1,7 +1,8 @@ import React, { useState } from "react"; import { FontAwesomeIcon } from "@fortawesome/react-fontawesome"; -import { faCopy, faCheckCircle } from "@fortawesome/free-regular-svg-icons"; -import { faCheck } from "@fortawesome/free-solid-svg-icons"; +import { faCopy } from "@fortawesome/free-regular-svg-icons/faCopy"; +import { faCheckCircle } from "@fortawesome/free-regular-svg-icons/faCheckCircle"; +import { faCheck } from "@fortawesome/free-solid-svg-icons/faCheck"; type CopyProps = { value: string; diff --git a/src/components/DecoratedAddressLink.tsx b/src/components/DecoratedAddressLink.tsx index 82d70f9..a325343 100644 --- a/src/components/DecoratedAddressLink.tsx +++ b/src/components/DecoratedAddressLink.tsx @@ -1,12 +1,10 @@ import React from "react"; import { FontAwesomeIcon } from "@fortawesome/react-fontawesome"; -import { - faStar, - faBomb, - faMoneyBillAlt, - faBurn, - faCoins, -} from "@fortawesome/free-solid-svg-icons"; +import { faStar } from "@fortawesome/free-solid-svg-icons/faStar"; +import { faBomb } from "@fortawesome/free-solid-svg-icons/faBomb"; +import { faMoneyBillAlt } from "@fortawesome/free-solid-svg-icons/faMoneyBillAlt"; +import { faBurn } from "@fortawesome/free-solid-svg-icons/faBurn"; +import { faCoins } from "@fortawesome/free-solid-svg-icons/faCoins"; import TokenLogo from "./TokenLogo"; import AddressOrENSName from "./AddressOrENSName"; import { AddressContext, TokenMeta, ZERO_ADDRESS } from "../types"; diff --git a/src/components/ExternalLink.tsx b/src/components/ExternalLink.tsx index 51769a8..8d38069 100644 --- a/src/components/ExternalLink.tsx +++ b/src/components/ExternalLink.tsx @@ -1,6 +1,6 @@ import React from "react"; import { FontAwesomeIcon } from "@fortawesome/react-fontawesome"; -import { faExternalLinkAlt } from "@fortawesome/free-solid-svg-icons"; +import { faExternalLinkAlt } from "@fortawesome/free-solid-svg-icons/faExternalLinkAlt"; type ExternalLinkProps = { href: string; diff --git a/src/components/InternalCreate.tsx b/src/components/InternalCreate.tsx index e048477..7a723ce 100644 --- a/src/components/InternalCreate.tsx +++ b/src/components/InternalCreate.tsx @@ -1,6 +1,6 @@ import React from "react"; import { FontAwesomeIcon } from "@fortawesome/react-fontawesome"; -import { faAngleRight } from "@fortawesome/free-solid-svg-icons"; +import { faAngleRight } from "@fortawesome/free-solid-svg-icons/faAngleRight"; import AddressHighlighter from "./AddressHighlighter"; import DecoratedAddressLink from "./DecoratedAddressLink"; import { TransactionData, InternalOperation } from "../types"; diff --git a/src/components/InternalSelfDestruct.tsx b/src/components/InternalSelfDestruct.tsx index 543b429..b5ed5a1 100644 --- a/src/components/InternalSelfDestruct.tsx +++ b/src/components/InternalSelfDestruct.tsx @@ -1,7 +1,7 @@ import React, { useContext } from "react"; import { ethers } from "ethers"; import { FontAwesomeIcon } from "@fortawesome/react-fontawesome"; -import { faAngleRight } from "@fortawesome/free-solid-svg-icons"; +import { faAngleRight } from "@fortawesome/free-solid-svg-icons/faAngleRight"; import AddressHighlighter from "./AddressHighlighter"; import DecoratedAddressLink from "./DecoratedAddressLink"; import { RuntimeContext } from "../useRuntime"; diff --git a/src/components/InternalTransfer.tsx b/src/components/InternalTransfer.tsx index 90dd967..fb63c7c 100644 --- a/src/components/InternalTransfer.tsx +++ b/src/components/InternalTransfer.tsx @@ -1,7 +1,7 @@ import React from "react"; import { ethers } from "ethers"; import { FontAwesomeIcon } from "@fortawesome/react-fontawesome"; -import { faAngleRight } from "@fortawesome/free-solid-svg-icons"; +import { faAngleRight } from "@fortawesome/free-solid-svg-icons/faAngleRight"; import AddressHighlighter from "./AddressHighlighter"; import DecoratedAddressLink from "./DecoratedAddressLink"; import { TransactionData, InternalOperation } from "../types"; diff --git a/src/components/Nonce.tsx b/src/components/Nonce.tsx index 69f1c17..f03eaad 100644 --- a/src/components/Nonce.tsx +++ b/src/components/Nonce.tsx @@ -1,6 +1,6 @@ import React from "react"; import { FontAwesomeIcon } from "@fortawesome/react-fontawesome"; -import { faArrowUp } from "@fortawesome/free-solid-svg-icons"; +import { faArrowUp } from "@fortawesome/free-solid-svg-icons/faArrowUp"; type NonceProps = { value: number; diff --git a/src/components/Timestamp.tsx b/src/components/Timestamp.tsx index 8da83d8..78c55b0 100644 --- a/src/components/Timestamp.tsx +++ b/src/components/Timestamp.tsx @@ -1,6 +1,6 @@ import React from "react"; import { FontAwesomeIcon } from "@fortawesome/react-fontawesome"; -import { faClock } from "@fortawesome/free-regular-svg-icons"; +import { faClock } from "@fortawesome/free-regular-svg-icons/faClock"; import TimestampAge from "./TimestampAge"; type TimestampProps = { diff --git a/src/components/TransactionDirection.tsx b/src/components/TransactionDirection.tsx index 3695a77..948b8eb 100644 --- a/src/components/TransactionDirection.tsx +++ b/src/components/TransactionDirection.tsx @@ -1,9 +1,7 @@ import React from "react"; import { FontAwesomeIcon } from "@fortawesome/react-fontawesome"; -import { - faCoins, - faLongArrowAltRight, -} from "@fortawesome/free-solid-svg-icons"; +import { faCoins } from "@fortawesome/free-solid-svg-icons/faCoins"; +import { faLongArrowAltRight } from "@fortawesome/free-solid-svg-icons/faLongArrowAltRight"; export enum Direction { IN, @@ -41,7 +39,7 @@ const TransactionDirection: React.FC = ({ msg = "SELF"; } else if (direction === Direction.INTERNAL) { msg = "INT"; - bgColor = "bg-green-100" + bgColor = "bg-green-100"; } if (flags === Flags.MINER) { diff --git a/src/search/TransactionItem.tsx b/src/search/TransactionItem.tsx index bc84a6c..32aab32 100644 --- a/src/search/TransactionItem.tsx +++ b/src/search/TransactionItem.tsx @@ -1,6 +1,6 @@ import React from "react"; import { FontAwesomeIcon } from "@fortawesome/react-fontawesome"; -import { faExclamationCircle } from "@fortawesome/free-solid-svg-icons"; +import { faExclamationCircle } from "@fortawesome/free-solid-svg-icons/faExclamationCircle"; import MethodName from "../components/MethodName"; import BlockLink from "../components/BlockLink"; import TransactionLink from "../components/TransactionLink"; diff --git a/src/special/london/Blocks.tsx b/src/special/london/Blocks.tsx index a07cfe6..56268cf 100644 --- a/src/special/london/Blocks.tsx +++ b/src/special/london/Blocks.tsx @@ -9,13 +9,11 @@ import { ethers, FixedNumber } from "ethers"; import { Line } from "react-chartjs-2"; import { Transition } from "@headlessui/react"; import { FontAwesomeIcon } from "@fortawesome/react-fontawesome"; -import { - faBurn, - faCoins, - faCube, - faGasPump, - faHistory, -} from "@fortawesome/free-solid-svg-icons"; +import { faBurn } from "@fortawesome/free-solid-svg-icons/faBurn"; +import { faCoins } from "@fortawesome/free-solid-svg-icons/faCoins"; +import { faCube } from "@fortawesome/free-solid-svg-icons/faCube"; +import { faGasPump } from "@fortawesome/free-solid-svg-icons/faGasPump"; +import { faHistory } from "@fortawesome/free-solid-svg-icons/faHistory"; import BlockRow from "./BlockRow"; import { ExtendedBlock, readBlock } from "../../useErigonHooks"; import { RuntimeContext } from "../../useRuntime"; diff --git a/src/transaction/Details.tsx b/src/transaction/Details.tsx index 2946df5..4aaf000 100644 --- a/src/transaction/Details.tsx +++ b/src/transaction/Details.tsx @@ -1,11 +1,9 @@ import React from "react"; import { ethers } from "ethers"; import { FontAwesomeIcon } from "@fortawesome/react-fontawesome"; -import { - faCheckCircle, - faCube, - faTimesCircle, -} from "@fortawesome/free-solid-svg-icons"; +import { faCheckCircle } from "@fortawesome/free-solid-svg-icons/faCheckCircle"; +import { faCube } from "@fortawesome/free-solid-svg-icons/faCube"; +import { faTimesCircle } from "@fortawesome/free-solid-svg-icons/faTimesCircle"; import ContentFrame from "../ContentFrame"; import InfoRow from "../components/InfoRow"; import BlockLink from "../components/BlockLink"; diff --git a/src/transaction/RewardSplit.tsx b/src/transaction/RewardSplit.tsx index 23c527d..8c45cd0 100644 --- a/src/transaction/RewardSplit.tsx +++ b/src/transaction/RewardSplit.tsx @@ -1,6 +1,7 @@ import React from "react"; import { FontAwesomeIcon } from "@fortawesome/react-fontawesome"; -import { faBurn, faCoins } from "@fortawesome/free-solid-svg-icons"; +import { faBurn } from "@fortawesome/free-solid-svg-icons/faBurn"; +import { faCoins } from "@fortawesome/free-solid-svg-icons/faCoins"; import FormattedBalance from "../components/FormattedBalance"; import { TransactionData } from "../types"; import PercentageGauge from "../components/PercentageGauge";