Add pendingApplications derived value

cgen-f753737a6ac0458783128719c56ea3e4
This commit is contained in:
Builder.io 2025-10-14 02:24:54 +00:00
parent 0e4696fd01
commit e3d826f0ee

View file

@ -197,6 +197,10 @@ export default function Admin() {
const totalMembers = managedProfiles.length;
const publishedPosts = blogPosts.length;
const featuredStudios = studios.length;
const pendingApplications = applications.filter((app) => {
const status = (app.status ?? "").toLowerCase();
return status !== "approved" && status !== "completed" && status !== "closed";
}).length;
const overviewStats = useMemo(
() => [