This commit is contained in:
myf 2022-06-10 10:43:17 +08:00
parent 06e513446a
commit 81e4d87a4b
1 changed files with 2 additions and 10 deletions

View File

@ -22,22 +22,14 @@ const PriceLink = styled.a`
`; `;
const CakePrice: React.FC<Props> = ({ cakePriceUsd }) => { const CakePrice: React.FC<Props> = ({ cakePriceUsd }) => {
return cakePriceUsd ? ( return (
<PriceLink
href="https://exchange.pancakeswap.finance/#/swap?outputCurrency=0x0e09fabb73bd3ade0a17ecc321fd13a19e81ce82"
target="_blank"
>
<HighIcon width="24px" mr="8px" />
<Text color="textSubtle" bold>{`$${cakePriceUsd.toFixed(3)}`}</Text>
</PriceLink>
) : (
<PriceLink <PriceLink
href="https://exchange.pancakeswap.finance/#/swap?outputCurrency=0x0e09fabb73bd3ade0a17ecc321fd13a19e81ce82" href="https://exchange.pancakeswap.finance/#/swap?outputCurrency=0x0e09fabb73bd3ade0a17ecc321fd13a19e81ce82"
target="_blank" target="_blank"
> >
<HighIcon width="24px" mr="8px" /> <HighIcon width="24px" mr="8px" />
<Text color="textSubtle" bold> <Text color="textSubtle" bold>
$0 {cakePriceUsd ? `$${cakePriceUsd.toFixed(3)}` : "$0"}
</Text> </Text>
</PriceLink> </PriceLink>
); );