@@ -581,7 +598,7 @@ export function TransactionHistory() {
)}
- {sortedTransactions.length > 0 && (<>
+ {!loading && sortedTransactions.length > 0 && (<>
{/* Desktop table — paginated (≤50) or virtualized (>50) */}
diff --git a/components/dashboard/wallet-info.tsx b/components/dashboard/wallet-info.tsx
index 6739b1b..7a99507 100644
--- a/components/dashboard/wallet-info.tsx
+++ b/components/dashboard/wallet-info.tsx
@@ -3,14 +3,16 @@
import { motion } from 'framer-motion'
import { Wallet, Copy, Check, ExternalLink, BadgeCheck } from 'lucide-react'
import { Button } from '@/components/ui/button'
+import { Skeleton } from '@/components/ui/skeleton'
import { useState, useEffect } from 'react'
interface WalletInfoProps {
walletName: string
walletAddress: string
+ loading?: boolean
}
-export function WalletInfo({ walletName, walletAddress }: WalletInfoProps) {
+export function WalletInfo({ walletName, walletAddress, loading = false }: WalletInfoProps) {
const [copied, setCopied] = useState(false)
const [isVerified, setIsVerified] = useState(false)
@@ -31,6 +33,27 @@ export function WalletInfo({ walletName, walletAddress }: WalletInfoProps) {
setTimeout(() => setCopied(false), 2000)
}
+ if (loading) {
+ return (
+
+
+
+ )
+ }
+
return (