Commit 858b6afb authored by Justin Domingue's avatar Justin Domingue Committed by GitHub

improvement(swap): hide swap placeholders to reduce visual complexity (#1678)

* resolve #1646: hide swap placeholders to reduce visual complexity

* use empty string over space
parent da14d8fd
...@@ -24,8 +24,8 @@ export function FiatValue({ ...@@ -24,8 +24,8 @@ export function FiatValue({
return ( return (
<TYPE.body fontSize={14} color={fiatValue ? theme.text2 : theme.text4}> <TYPE.body fontSize={14} color={fiatValue ? theme.text2 : theme.text4}>
{fiatValue ? '~' : ''}$ {fiatValue ? '~$' : ''}
<HoverInlineText text={fiatValue ? fiatValue?.toSignificant(6, { groupSeparator: ',' }) : '-'} />{' '} <HoverInlineText text={fiatValue ? fiatValue?.toSignificant(6, { groupSeparator: ',' }) : ''} />{' '}
{priceImpact ? ( {priceImpact ? (
<span style={{ color: priceImpactColor }}> ({priceImpact.multiply(-1).toSignificant(3)}%)</span> <span style={{ color: priceImpactColor }}> ({priceImpact.multiply(-1).toSignificant(3)}%)</span>
) : null} ) : null}
......
...@@ -273,14 +273,14 @@ export default function CurrencyInputPanel({ ...@@ -273,14 +273,14 @@ export default function CurrencyInputPanel({
formatTokenAmount(selectedCurrencyBalance, 4) + formatTokenAmount(selectedCurrencyBalance, 4) +
' ' + ' ' +
currency.symbol currency.symbol
: '-'} : ''}
</TYPE.body> </TYPE.body>
{showMaxButton && selectedCurrencyBalance ? ( {showMaxButton && selectedCurrencyBalance ? (
<StyledBalanceMax onClick={onMax}>(Max)</StyledBalanceMax> <StyledBalanceMax onClick={onMax}>(Max)</StyledBalanceMax>
) : null} ) : null}
</RowFixed> </RowFixed>
) : ( ) : (
'-' <span></span>
)} )}
<FiatValue fiatValue={fiatValue} priceImpact={priceImpact} /> <FiatValue fiatValue={fiatValue} priceImpact={priceImpact} />
</RowBetween> </RowBetween>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment