`
padding: ${({ inline }) => (inline ? '20px 0' : '32px 0;')};
`
-const StyledLogo = styled.img`
- height: 16px;
- width: 16px;
- margin-left: 6px;
-`
-
const ConfirmationModalContentWrapper = styled(AutoColumn)`
padding-bottom: 12px;
`
@@ -231,8 +226,8 @@ function L2Content({
{!inline && (
-
-
+
+
{info.label}
diff --git a/src/components/swap/ConfirmSwapModal.tsx b/src/components/swap/ConfirmSwapModal.tsx
index d8ab028cbf..98796538d2 100644
--- a/src/components/swap/ConfirmSwapModal.tsx
+++ b/src/components/swap/ConfirmSwapModal.tsx
@@ -9,6 +9,7 @@ import { Currency, Percent } from '@uniswap/sdk-core'
import { useWeb3React } from '@web3-react/core'
import { sendAnalyticsEvent, Trace, useTrace } from 'analytics'
import Badge from 'components/Badge'
+import { ChainLogo } from 'components/Logo/ChainLogo'
import Modal, { MODAL_TRANSITION_DURATION } from 'components/Modal'
import { RowFixed } from 'components/Row'
import { getChainInfo } from 'constants/chainInfo'
@@ -55,11 +56,6 @@ const StyledL2Badge = styled(Badge)`
padding: 6px 8px;
`
-const StyledL2Logo = styled.img`
- height: 16px;
- width: 16px;
-`
-
function isInApprovalPhase(confirmModalState: ConfirmModalState) {
return (
confirmModalState === ConfirmModalState.RESETTING_TOKEN_ALLOWANCE ||
@@ -412,7 +408,7 @@ export default function ConfirmSwapModal({
return (
-
+
{info.label}
diff --git a/src/components/swap/SwapLineItem.tsx b/src/components/swap/SwapLineItem.tsx
index 397975b91a..a4ad6400a5 100644
--- a/src/components/swap/SwapLineItem.tsx
+++ b/src/components/swap/SwapLineItem.tsx
@@ -1,10 +1,10 @@
import { t, Trans } from '@lingui/macro'
import { Currency, CurrencyAmount, Percent, TradeType } from '@uniswap/sdk-core'
import { LoadingRow } from 'components/Loader/styled'
+import { ChainLogo } from 'components/Logo/ChainLogo'
import RouterLabel from 'components/RouterLabel'
import Row, { RowBetween } from 'components/Row'
import { MouseoverTooltip, TooltipSize } from 'components/Tooltip'
-import { getChainInfo } from 'constants/chainInfo'
import { SUPPORTED_GAS_ESTIMATE_CHAIN_IDS } from 'constants/chains'
import useHoverProps from 'hooks/useHoverProps'
import { useIsMobile } from 'nft/hooks'
@@ -128,7 +128,7 @@ function useLineItem(props: SwapLineItemProps): LineItemData | undefined {
if (isPreview) return
return (
-
+
{formatNumber({ input: trade.totalGasUseEstimateUSD, type: NumberType.FiatGasPrice })}
)
diff --git a/src/components/swap/__snapshots__/SwapDetailsDropdown.test.tsx.snap b/src/components/swap/__snapshots__/SwapDetailsDropdown.test.tsx.snap
index 0391cdb5f2..c838b3cdee 100644
--- a/src/components/swap/__snapshots__/SwapDetailsDropdown.test.tsx.snap
+++ b/src/components/swap/__snapshots__/SwapDetailsDropdown.test.tsx.snap
@@ -399,12 +399,35 @@ exports[`SwapDetailsDropdown.tsx renders a trade 1`] = `
-
+ >
+
+ Ethereum logo
+
+
+
+
+
$1.00
diff --git a/src/components/swap/__snapshots__/SwapLineItem.test.tsx.snap b/src/components/swap/__snapshots__/SwapLineItem.test.tsx.snap
index 05b2fcf01b..c1f7d1105b 100644
--- a/src/components/swap/__snapshots__/SwapLineItem.test.tsx.snap
+++ b/src/components/swap/__snapshots__/SwapLineItem.test.tsx.snap
@@ -198,12 +198,35 @@ exports[`SwapLineItem.tsx dutch order eth input 1`] = `
-
+ >
+
+ Ethereum logo
+
+
+
+
+
$0.00
@@ -1199,12 +1222,35 @@ exports[`SwapLineItem.tsx exact input 1`] = `