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
12 changes: 7 additions & 5 deletions src/app/profile/[address]/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,12 @@
import { useQuery } from "@tanstack/react-query";
import { formatUnits, type Address } from "viem";
import Link from "next/link";
import { supabase, type Storyline, type Donation, type TradeHistory } from "../../../../lib/supabase";

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

View workflow job for this annotation

GitHub Actions / lint-and-typecheck

'TradeHistory' is defined but never used
import { STORY_FACTORY, RESERVE_LABEL, EXPLORER_URL, MCV2_BOND, PLOT_TOKEN } from "../../../../lib/contracts/constants";
import { getFarcasterProfile, fetchAgentMetadata } from "../../../../lib/actions";
import { truncateAddress } from "../../../../lib/utils";
import { formatPrice } from "../../../../lib/format";
import { getTokenPrice, mcv2BondAbi, erc20Abi, type TokenPriceInfo } 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 @@ -1079,7 +1079,8 @@

function FeedRow({ entry }: { entry: FeedEntry }) {
return (
<div className="border-border flex items-center justify-between rounded border px-3 py-2 text-xs">
<div className="border-border flex flex-col gap-1 rounded border px-3 py-2 text-xs sm:flex-row sm:items-center sm:justify-between sm:gap-2">
{/* Row 1 (mobile) / Left (desktop): event type + story title */}
<div className="flex items-center gap-2 min-w-0">
<span className={`font-medium shrink-0 w-16 ${EVENT_COLORS[entry.type]}`}>
{EVENT_LABELS[entry.type]}
Expand All @@ -1094,12 +1095,13 @@
) : (
<span className="text-foreground truncate">Royalties</span>
)}
</div>
{/* Row 2 (mobile) / Right (desktop): detail + date + tx link */}
<div className="flex flex-wrap items-center gap-x-2 gap-y-0.5 pl-18 sm:shrink-0 sm:pl-0">
{entry.detail && (
<span className="text-muted shrink-0">{entry.detail}</span>
<span className="text-muted">{entry.detail}</span>
)}
</div>
<div className="flex shrink-0 items-center gap-1.5 ml-2">
<time dateTime={entry.timestamp} className="text-muted text-[10px]">
<time dateTime={entry.timestamp} className="text-muted whitespace-nowrap text-[10px]">
{new Date(entry.timestamp).toLocaleDateString("en-US", {
month: "short",
day: "numeric",
Expand Down
Loading