From b58d419a5977605bd443598e861356644e4436a1 Mon Sep 17 00:00:00 2001 From: Cho Young-Hwi Date: Mon, 16 Mar 2026 16:24:42 +0000 Subject: [PATCH] [#195] Add tooltip to Donations label on writer dashboard Info icon with hover/tap tooltip explaining that donations are sent directly to the writer's wallet and don't need claiming. Fixes #195 Co-Authored-By: Claude Opus 4.6 (1M context) --- src/app/dashboard/writer/page.tsx | 32 ++++++++++++++++++++++++++++++- 1 file changed, 31 insertions(+), 1 deletion(-) diff --git a/src/app/dashboard/writer/page.tsx b/src/app/dashboard/writer/page.tsx index 03f5fe2b..52a5134f 100644 --- a/src/app/dashboard/writer/page.tsx +++ b/src/app/dashboard/writer/page.tsx @@ -1,5 +1,6 @@ "use client"; +import { useState } from "react"; import { useAccount } from "wagmi"; import { useQuery } from "@tanstack/react-query"; import { formatUnits } from "viem"; @@ -121,9 +122,11 @@ function StorylineDetail({ storyline, writerAddress }: { storyline: Storyline; w
- + Donations + +
{storyline.token_address ? : @@ -183,3 +186,30 @@ function DonationCount({ storylineId, tokenAddress }: { storylineId: number; tok
); } + +function DonationsTooltip() { + const [show, setShow] = useState(false); + return ( + + + {show && ( + + Donations +
+ + Sent directly to your wallet when donors contribute. Already in your account — no claiming needed. + +
+ )} +
+ ); +}