From a50ad41b4f47c460ddffdc5185f35587355dfb6a Mon Sep 17 00:00:00 2001 From: talksik Date: Tue, 14 Apr 2026 12:01:50 -0700 Subject: [PATCH] cleanup billing management for admin --- js/src/features/network-billing.tsx | 10 +--------- js/src/features/network-root.tsx | 21 ++++++++++++++++++++- 2 files changed, 21 insertions(+), 10 deletions(-) diff --git a/js/src/features/network-billing.tsx b/js/src/features/network-billing.tsx index ac233e3..2eed7ec 100644 --- a/js/src/features/network-billing.tsx +++ b/js/src/features/network-billing.tsx @@ -145,7 +145,7 @@ function FreePlanView({
Llink Free - Current plan · up to 50 particles per day + Current plan · up to 50 messages per day
Free @@ -157,14 +157,6 @@ function FreePlanView({

Upgrade to Pro

-
n.id === networkId); + const currentUser = useAuthStore((s) => s.user); + const isAdmin = currentUser?.id === network?.admin_human.id; + const [composeActive, setComposeActive] = useState(false); const [searchParams, setSearchParams] = useSearchParams(); const statusTab: "open" | "closed" = @@ -60,6 +68,17 @@ export default function NetworkRoot() { Closed + {isAdmin && ( + + )}
{/* Scrollable content */}