chore: removing check mark on token selector (#7533)

This commit is contained in:
Jack Short 2023-11-07 15:20:49 -05:00 committed by GitHub
parent ce4df4f79e
commit aa056adaf9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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>