fix: remove new badge from Uniswap Wallet (#6911)
* remove new badge from Uniswap Wallet * remove isNew field and badge * clean lint
This commit is contained in:
parent
bbe42b81de
commit
0efb7f51a4
@ -83,8 +83,3 @@ const Badge = styled.div<PropsWithChildren<BadgeProps>>`
|
||||
`
|
||||
|
||||
export default Badge
|
||||
|
||||
export const SmallBadge = styled(Badge)`
|
||||
border-radius: 5px;
|
||||
padding: 2px 4px;
|
||||
`
|
||||
|
@ -1,10 +0,0 @@
|
||||
import { BadgeVariant, SmallBadge } from 'components/Badge'
|
||||
import { ThemedText } from 'theme'
|
||||
|
||||
export default function NewBadge() {
|
||||
return (
|
||||
<SmallBadge variant={BadgeVariant.BRANDED}>
|
||||
<ThemedText.UtilityBadge>NEW</ThemedText.UtilityBadge>
|
||||
</SmallBadge>
|
||||
)
|
||||
}
|
@ -9,8 +9,6 @@ import styled from 'styled-components/macro'
|
||||
import { useIsDarkMode } from 'theme/components/ThemeToggle'
|
||||
import { flexColumnNoWrap, flexRowNoWrap } from 'theme/styles'
|
||||
|
||||
import NewBadge from './NewBadge'
|
||||
|
||||
const OptionCardLeft = styled.div`
|
||||
${flexColumnNoWrap};
|
||||
flex-direction: row;
|
||||
@ -109,7 +107,6 @@ export default function Option({ connection }: OptionProps) {
|
||||
<img src={connection.getIcon?.(isDarkMode)} alt={connection.getName()} />
|
||||
</IconWrapper>
|
||||
<HeaderText>{connection.getName()}</HeaderText>
|
||||
{connection.isNew && <NewBadge />}
|
||||
</OptionCardLeft>
|
||||
{isCurrentOptionPending && <Loader />}
|
||||
</OptionCardClickable>
|
||||
|
@ -102,7 +102,6 @@ export const uniwalletWCV2ConnectConnection: Connection = {
|
||||
type: ConnectionType.UNISWAP_WALLET_V2,
|
||||
getIcon: () => UNIWALLET_ICON,
|
||||
shouldDisplay: () => Boolean(!getIsInjectedMobileBrowser() && !isNonIOSPhone),
|
||||
isNew: true,
|
||||
}
|
||||
|
||||
const [web3CoinbaseWallet, web3CoinbaseWalletHooks] = initializeConnector<CoinbaseWallet>(
|
||||
|
@ -19,5 +19,4 @@ export interface Connection {
|
||||
getIcon?(isDarkMode: boolean): string
|
||||
shouldDisplay(): boolean
|
||||
overrideActivate?: (chainId?: ChainId) => boolean
|
||||
isNew?: boolean
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user