diff --git a/src/wallet/components/WalletDropdownBaseName.tsx b/src/wallet/components/WalletDropdownBaseName.tsx deleted file mode 100644 index 811a9b4b0b..0000000000 --- a/src/wallet/components/WalletDropdownBaseName.tsx +++ /dev/null @@ -1,61 +0,0 @@ -import { base } from 'viem/chains'; -import { useAccount } from 'wagmi'; -import { useName } from '../../identity/hooks/useName'; -import { Spinner } from '../../internal/components/Spinner'; -import { baseNameSvg } from '../../internal/svg/baseNameSvg'; -import { cn, pressable, text } from '../../styles/theme'; -import type { WalletDropdownBaseNameReact } from '../types'; - -export function WalletDropdownBaseName({ - className, -}: WalletDropdownBaseNameReact) { - const { address } = useAccount(); - - if (!address) { - return null; - } - - const { data: baseName, isLoading } = useName({ - address, - chain: base, - }); - - const hasBaseUserName = !!baseName; - const title = hasBaseUserName ? 'Go to profile' : 'Claim a Basename'; - const href = hasBaseUserName - ? `https://www.base.org/name/${baseName}` - : 'https://www.base.org/names'; - - return ( - - {baseNameSvg &&
{baseNameSvg}
} -
- {isLoading ? ( - - ) : ( - <> - {title} - {!hasBaseUserName && ( - - NEW - - )} - - )} -
-
- ); -}