chore: removing check mark on token selector (#7533)
This commit is contained in:
parent
ce4df4f79e
commit
aa056adaf9
@ -9,7 +9,6 @@ import { checkWarning } from 'constants/tokenSafety'
|
|||||||
import { TokenBalances } from 'lib/hooks/useTokenList/sorting'
|
import { TokenBalances } from 'lib/hooks/useTokenList/sorting'
|
||||||
import tryParseCurrencyAmount from 'lib/utils/tryParseCurrencyAmount'
|
import tryParseCurrencyAmount from 'lib/utils/tryParseCurrencyAmount'
|
||||||
import { CSSProperties, MutableRefObject, useCallback, useMemo } from 'react'
|
import { CSSProperties, MutableRefObject, useCallback, useMemo } from 'react'
|
||||||
import { Check } from 'react-feather'
|
|
||||||
import { FixedSizeList } from 'react-window'
|
import { FixedSizeList } from 'react-window'
|
||||||
import { Text } from 'rebass'
|
import { Text } from 'rebass'
|
||||||
import styled from 'styled-components'
|
import styled from 'styled-components'
|
||||||
@ -29,13 +28,6 @@ function currencyKey(currency: Currency): string {
|
|||||||
return currency.isToken ? currency.address : 'ETHER'
|
return currency.isToken ? currency.address : 'ETHER'
|
||||||
}
|
}
|
||||||
|
|
||||||
const CheckIcon = styled(Check)`
|
|
||||||
height: 20px;
|
|
||||||
width: 20px;
|
|
||||||
margin-left: 4px;
|
|
||||||
color: ${({ theme }) => theme.accent1};
|
|
||||||
`
|
|
||||||
|
|
||||||
const StyledBalanceText = styled(Text)`
|
const StyledBalanceText = styled(Text)`
|
||||||
white-space: nowrap;
|
white-space: nowrap;
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
@ -181,17 +173,10 @@ export function CurrencyRow({
|
|||||||
<TokenTags currency={currency} />
|
<TokenTags currency={currency} />
|
||||||
</RowFixed>
|
</RowFixed>
|
||||||
</Column>
|
</Column>
|
||||||
{showCurrencyAmount ? (
|
{showCurrencyAmount && (
|
||||||
<RowFixed style={{ justifySelf: 'flex-end' }}>
|
<RowFixed style={{ justifySelf: 'flex-end' }}>
|
||||||
{account ? balance ? <Balance balance={balance} /> : <Loader /> : null}
|
{account ? balance ? <Balance balance={balance} /> : <Loader /> : null}
|
||||||
{isSelected && <CheckIcon />}
|
|
||||||
</RowFixed>
|
</RowFixed>
|
||||||
) : (
|
|
||||||
isSelected && (
|
|
||||||
<RowFixed style={{ justifySelf: 'flex-end' }}>
|
|
||||||
<CheckIcon />
|
|
||||||
</RowFixed>
|
|
||||||
)
|
|
||||||
)}
|
)}
|
||||||
</MenuItem>
|
</MenuItem>
|
||||||
</TraceEvent>
|
</TraceEvent>
|
||||||
|
Loading…
Reference in New Issue
Block a user