This commit is contained in:
parent
06e513446a
commit
81e4d87a4b
|
|
@ -22,22 +22,14 @@ const PriceLink = styled.a`
|
|||
`;
|
||||
|
||||
const CakePrice: React.FC<Props> = ({ cakePriceUsd }) => {
|
||||
return cakePriceUsd ? (
|
||||
<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>
|
||||
) : (
|
||||
return (
|
||||
<PriceLink
|
||||
href="https://exchange.pancakeswap.finance/#/swap?outputCurrency=0x0e09fabb73bd3ade0a17ecc321fd13a19e81ce82"
|
||||
target="_blank"
|
||||
>
|
||||
<HighIcon width="24px" mr="8px" />
|
||||
<Text color="textSubtle" bold>
|
||||
$0
|
||||
{cakePriceUsd ? `$${cakePriceUsd.toFixed(3)}` : "$0"}
|
||||
</Text>
|
||||
</PriceLink>
|
||||
);
|
||||
|
|
|
|||
Loading…
Reference in New Issue