From c5424d2dcc330f690e6d5eaa7ba3ada915d2bf17 Mon Sep 17 00:00:00 2001 From: Moody Salem Date: Thu, 29 Apr 2021 10:26:12 -0500 Subject: [PATCH] some tweaks to the token logo --- src/components/CurrencyInputPanel/index.tsx | 5 ++++- src/components/CurrencyLogo/index.tsx | 8 ++++---- src/components/Logo/index.tsx | 9 ++++++--- src/hooks/useColor.ts | 2 +- 4 files changed, 15 insertions(+), 9 deletions(-) diff --git a/src/components/CurrencyInputPanel/index.tsx b/src/components/CurrencyInputPanel/index.tsx index 03ac7fd382..0a621bebcc 100644 --- a/src/components/CurrencyInputPanel/index.tsx +++ b/src/components/CurrencyInputPanel/index.tsx @@ -216,10 +216,13 @@ export default function CurrencyInputPanel({ {label} - {fiatValueOfTypedAmount ? ${fiatValueOfTypedAmount?.toFixed(2)} : null} + + {fiatValueOfTypedAmount ? '~' : ''}${fiatValueOfTypedAmount?.toSignificant(4) ?? '-'} + )} + (0) + const theme = useTheme() + const src: string | undefined = srcs.find((src) => !BAD_SRCS[src]) if (src) { @@ -30,5 +33,5 @@ export default function Logo({ srcs, alt, ...rest }: LogoProps) { ) } - return + return } diff --git a/src/hooks/useColor.ts b/src/hooks/useColor.ts index 3dc438847b..56a243ffe4 100644 --- a/src/hooks/useColor.ts +++ b/src/hooks/useColor.ts @@ -6,7 +6,7 @@ import { Token, ChainId } from '@uniswap/sdk-core' import uriToHttp from 'utils/uriToHttp' async function getColorFromToken(token: Token): Promise { - if (token.chainId === ChainId.RINKEBY && token.address === '0xc7AD46e0b8a400Bb3C915120d284AafbA8fc4735') { + if (token.chainId !== ChainId.MAINNET) { return Promise.resolve('#FAAB14') }