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 tryParseCurrencyAmount from 'lib/utils/tryParseCurrencyAmount'
|
||||
import { CSSProperties, MutableRefObject, useCallback, useMemo } from 'react'
|
||||
import { Check } from 'react-feather'
|
||||
import { FixedSizeList } from 'react-window'
|
||||
import { Text } from 'rebass'
|
||||
import styled from 'styled-components'
|
||||
@ -29,13 +28,6 @@ function currencyKey(currency: Currency): string {
|
||||
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)`
|
||||
white-space: nowrap;
|
||||
overflow: hidden;
|
||||
@ -181,17 +173,10 @@ export function CurrencyRow({
|
||||
<TokenTags currency={currency} />
|
||||
</RowFixed>
|
||||
</Column>
|
||||
{showCurrencyAmount ? (
|
||||
{showCurrencyAmount && (
|
||||
<RowFixed style={{ justifySelf: 'flex-end' }}>
|
||||
{account ? balance ? <Balance balance={balance} /> : <Loader /> : null}
|
||||
{isSelected && <CheckIcon />}
|
||||
</RowFixed>
|
||||
) : (
|
||||
isSelected && (
|
||||
<RowFixed style={{ justifySelf: 'flex-end' }}>
|
||||
<CheckIcon />
|
||||
</RowFixed>
|
||||
)
|
||||
)}
|
||||
</MenuItem>
|
||||
</TraceEvent>
|
||||
|
Loading…
Reference in New Issue
Block a user