From 784a8957006e39d94d36faa7c097d6e0ab8ce5a1 Mon Sep 17 00:00:00 2001 From: Paul Cramer Date: Tue, 30 Jul 2024 16:23:37 -0700 Subject: [PATCH] adsf --- .../components/WalletDropdownBaseName.tsx | 61 ------------------- 1 file changed, 61 deletions(-) delete mode 100644 src/wallet/components/WalletDropdownBaseName.tsx 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 - - )} - - )} -
-
- ); -}