From 0efb7f51a4881b49a36ce800a151455aaab1be52 Mon Sep 17 00:00:00 2001 From: Brendan Wong <35351983+LunrEclipse@users.noreply.github.com> Date: Mon, 17 Jul 2023 11:55:28 -0400 Subject: [PATCH] fix: remove new badge from Uniswap Wallet (#6911) * remove new badge from Uniswap Wallet * remove isNew field and badge * clean lint --- src/components/Badge/index.tsx | 5 ----- src/components/WalletModal/NewBadge.tsx | 10 ---------- src/components/WalletModal/Option.tsx | 3 --- src/connection/index.ts | 1 - src/connection/types.ts | 1 - 5 files changed, 20 deletions(-) delete mode 100644 src/components/WalletModal/NewBadge.tsx diff --git a/src/components/Badge/index.tsx b/src/components/Badge/index.tsx index a496d9d3a4..dd34edfa0d 100644 --- a/src/components/Badge/index.tsx +++ b/src/components/Badge/index.tsx @@ -83,8 +83,3 @@ const Badge = styled.div>` ` export default Badge - -export const SmallBadge = styled(Badge)` - border-radius: 5px; - padding: 2px 4px; -` diff --git a/src/components/WalletModal/NewBadge.tsx b/src/components/WalletModal/NewBadge.tsx deleted file mode 100644 index 4654b8ee68..0000000000 --- a/src/components/WalletModal/NewBadge.tsx +++ /dev/null @@ -1,10 +0,0 @@ -import { BadgeVariant, SmallBadge } from 'components/Badge' -import { ThemedText } from 'theme' - -export default function NewBadge() { - return ( - - NEW - - ) -} diff --git a/src/components/WalletModal/Option.tsx b/src/components/WalletModal/Option.tsx index 8f245c3fbf..4b8e471626 100644 --- a/src/components/WalletModal/Option.tsx +++ b/src/components/WalletModal/Option.tsx @@ -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) { {connection.getName()} {connection.getName()} - {connection.isNew && } {isCurrentOptionPending && } diff --git a/src/connection/index.ts b/src/connection/index.ts index 6633ee29b6..6af0f2c591 100644 --- a/src/connection/index.ts +++ b/src/connection/index.ts @@ -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( diff --git a/src/connection/types.ts b/src/connection/types.ts index 947fff278e..536fd6f75f 100644 --- a/src/connection/types.ts +++ b/src/connection/types.ts @@ -19,5 +19,4 @@ export interface Connection { getIcon?(isDarkMode: boolean): string shouldDisplay(): boolean overrideActivate?: (chainId?: ChainId) => boolean - isNew?: boolean }