From 810d7aa31fcbd72b7bd12749b3baa7baca242ba5 Mon Sep 17 00:00:00 2001 From: Cho Young-Hwi Date: Mon, 16 Mar 2026 20:12:32 +0000 Subject: [PATCH] [#218] Add 'By:' prefix to StoryCard author + remove unused import - StoryCard: writer address now prefixed with "By: " - StoryCardStats: removed unused formatUnits import Fixes #218 Co-Authored-By: Claude Opus 4.6 (1M context) --- src/components/StoryCard.tsx | 2 +- src/components/StoryCardStats.tsx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/StoryCard.tsx b/src/components/StoryCard.tsx index 29a95fc7..2a9f1521 100644 --- a/src/components/StoryCard.tsx +++ b/src/components/StoryCard.tsx @@ -41,7 +41,7 @@ export function StoryCard({ {/* Author + meta */}
- {truncateAddress(storyline.writer_address)} + By: {truncateAddress(storyline.writer_address)} {storyline.plot_count} {storyline.plot_count === 1 ? "plot" : "plots"} diff --git a/src/components/StoryCardStats.tsx b/src/components/StoryCardStats.tsx index 7e332a45..fc1bf7cf 100644 --- a/src/components/StoryCardStats.tsx +++ b/src/components/StoryCardStats.tsx @@ -1,7 +1,7 @@ "use client"; import { useQuery } from "@tanstack/react-query"; -import { formatUnits, type Address } from "viem"; +import { type Address } from "viem"; import { getTokenTVL, getTokenPrice } from "../../lib/price"; import { IS_TESTNET } from "../../lib/contracts/constants";