Update overview stats

cgen-96922a15d4cb47fd90b4f086017d1a86
This commit is contained in:
Builder.io 2025-10-14 02:25:04 +00:00
parent e3d826f0ee
commit b1c6c0fa6f

View file

@ -229,15 +229,25 @@ export default function Admin() {
tone: "green" as const, tone: "green" as const,
}, },
{ {
title: "Security posture", title: "Pending applications",
value: "Owner", value: applicationsLoading ? "…" : pendingApplications.toString(),
description: `Admin access scoped to ${ownerEmail}.`, description: "Project collaboration requests awaiting review.",
trend: "Multi-role privileges active", trend: applicationsLoading
icon: Shield, ? "Fetching submissions…"
: `${applications.length} total submissions`,
icon: ClipboardList,
tone: "orange" as const, tone: "orange" as const,
}, },
], ],
[featuredStudios, loadingPosts, ownerEmail, publishedPosts, totalMembers], [
applications.length,
applicationsLoading,
featuredStudios,
loadingPosts,
pendingApplications,
publishedPosts,
totalMembers,
],
); );
const quickActions = useMemo( const quickActions = useMemo(