Skip to content
This repository has been archived by the owner on Jan 15, 2021. It is now read-only.

Commit

Permalink
Highlighting Price estimation text
Browse files Browse the repository at this point in the history
  • Loading branch information
Leandro Boscariol committed Jul 6, 2020
1 parent ccd7fb4 commit 7154f03
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/components/TradeWidget/PriceEstimations.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,11 @@ const OnchainOrderbookTooltip = (
</HelpTooltipContainer>
)

const HighlightedText = styled.span`
text-decoration-line: underline;
text-decoration-style: dotted;
`

const OnchainOrderbookPriceEstimation: React.FC<OnchainOrderbookPriceEstimationProps> = props => {
const { networkId, amount, baseToken, quoteToken, isPriceInverted, updatePrices, swapPrices } = props
const { id: baseTokenId, decimals: baseTokenDecimals } = baseToken
Expand Down Expand Up @@ -130,7 +135,8 @@ const OnchainOrderbookPriceEstimation: React.FC<OnchainOrderbookPriceEstimationP
return (
<>
<span>
Onchain orderbook price <HelpTooltip tooltip={OnchainOrderbookTooltip} /> for selling{' '}
<HighlightedText>Onchain orderbook price</HighlightedText> <HelpTooltip tooltip={OnchainOrderbookTooltip} /> for
selling{' '}
<strong>
{+amount || '1'} {displayTokenSymbolOrLink(quoteToken)}
</strong>
Expand Down

0 comments on commit 7154f03

Please sign in to comment.