diff --git a/src/components/GrimoireWelcome.tsx b/src/components/GrimoireWelcome.tsx index 881b095..4905dbc 100644 --- a/src/components/GrimoireWelcome.tsx +++ b/src/components/GrimoireWelcome.tsx @@ -148,7 +148,7 @@ export function GrimoireWelcome({ Monthly goal {formatSats(monthlyDonations)} /{" "} - {formatSats(MONTHLY_GOAL_SATS)} sats + {formatSats(MONTHLY_GOAL_SATS)} diff --git a/src/components/nostr/TopContributor.tsx b/src/components/nostr/TopContributor.tsx index 0c154c1..bac06d7 100644 --- a/src/components/nostr/TopContributor.tsx +++ b/src/components/nostr/TopContributor.tsx @@ -1,6 +1,5 @@ import { Trophy } from "lucide-react"; -import { useProfile } from "@/hooks/useProfile"; -import { getDisplayName } from "@/lib/nostr-utils"; +import { UserName } from "./UserName"; interface TopContributorProps { pubkey: string; @@ -13,9 +12,6 @@ export function TopContributor({ amount, variant = "default", }: TopContributorProps) { - const profile = useProfile(pubkey); - const displayName = getDisplayName(pubkey, profile); - function formatNumber(sats: number): string { if (sats >= 1_000_000) { return `${(sats / 1_000_000).toFixed(1)}M`; @@ -34,11 +30,11 @@ export function TopContributor({ - - {displayName} - + + {formatNumber(amount)} {!isCompact && " sats"} diff --git a/src/components/nostr/user-menu.tsx b/src/components/nostr/user-menu.tsx index 7b9b30f..b19a86c 100644 --- a/src/components/nostr/user-menu.tsx +++ b/src/components/nostr/user-menu.tsx @@ -445,7 +445,7 @@ export default function UserMenu() { Monthly goal {formatSats(monthlyDonations)} /{" "} - {formatSats(MONTHLY_GOAL_SATS)} sats + {formatSats(MONTHLY_GOAL_SATS)}