diff --git a/src/components/common/ActivityItem.tsx b/src/components/common/ActivityItem.tsx index 3b8e19a7..04200eef 100644 --- a/src/components/common/ActivityItem.tsx +++ b/src/components/common/ActivityItem.tsx @@ -9,10 +9,13 @@ import { Vote, } from 'lucide-react'; import { cn } from '@/lib/utils'; -import { formatRelativeTime } from '@/utils/time.utils'; +import { useRelativeTime } from '@/hooks/useRelativeTime'; import { buildStellarExpertTxUrl, truncateTxHash } from '@/constants/stellar'; import { env } from '@/utils/env.utils'; -import type { WalletActivityTrade, WalletActivityEventType } from '@/services/walletActivity.service'; +import type { + WalletActivityTrade, + WalletActivityEventType, +} from '@/services/walletActivity.service'; // ─── Icon + colour config per event type ────────────────────────────────────── @@ -27,35 +30,54 @@ function getEventConfig(type: WalletActivityEventType): EventConfig { switch (type) { case 'buy': return { - icon: