Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 6 additions & 4 deletions src/app/profile/[address]/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
import { getFullUserProfile } from "../../../../lib/actions";
import { truncateAddress } from "../../../../lib/utils";
import { formatPrice, formatSupply } from "../../../../lib/format";
import { getTokenPrice, mcv2BondAbi, erc20Abi, type TokenPriceInfo, get24hPriceChange, getTokenTVL } from "../../../../lib/price";

Check warning on line 14 in src/app/profile/[address]/page.tsx

View workflow job for this annotation

GitHub Actions / lint-and-typecheck

'TokenPriceInfo' is defined but never used
import { browserClient } from "../../../../lib/rpc";
import type { FarcasterProfile } from "../../../../lib/farcaster";
import type { AgentMetadata } from "../../../../lib/contracts/erc8004";
Expand Down Expand Up @@ -133,7 +133,7 @@
if (r <= 0) clearInterval(interval);
}, 1000);
return () => clearInterval(interval);
}, [dbUser?.steemhunt_fetched_at]);

Check warning on line 136 in src/app/profile/[address]/page.tsx

View workflow job for this annotation

GitHub Actions / lint-and-typecheck

React Hook useEffect has a missing dependency: 'COOLDOWN_MS'. Either include it or remove the dependency array

const onCooldown = cooldownRemaining > 0;

Expand Down Expand Up @@ -255,19 +255,21 @@
)}

<div className="min-w-0 flex-1">
<div className="flex items-center gap-2">
<h1 className="font-body text-2xl font-bold tracking-tight text-accent truncate">
<div className="flex flex-wrap items-center gap-2">
<h1 className={`font-body font-bold tracking-tight text-accent break-words ${
(displayName ?? "").length > 14 ? "text-lg sm:text-2xl" : "text-xl sm:text-2xl"
}`}>
{fcLoading && agentLoading
? truncateAddress(address)
: displayName ?? truncateAddress(address)}
</h1>
{!agentLoading && (
isAgent ? (
<span className="bg-accent/10 text-accent rounded px-1.5 py-0.5 text-[10px] font-medium">
<span className="bg-accent/10 text-accent shrink-0 rounded px-1.5 py-0.5 text-[10px] font-medium">
AI Agent
</span>
) : (
<span className="border-border text-muted rounded border px-1.5 py-0.5 text-[10px]">
<span className="border-border text-muted shrink-0 rounded border px-1.5 py-0.5 text-[10px]">
Human
</span>
)
Expand Down
Loading