This commit is contained in:
parent
06e513446a
commit
81e4d87a4b
|
|
@ -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>
|
||||||
);
|
);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue