Add pendingApplications derived value
cgen-f753737a6ac0458783128719c56ea3e4
This commit is contained in:
parent
0e4696fd01
commit
e3d826f0ee
1 changed files with 4 additions and 0 deletions
|
|
@ -197,6 +197,10 @@ export default function Admin() {
|
||||||
const totalMembers = managedProfiles.length;
|
const totalMembers = managedProfiles.length;
|
||||||
const publishedPosts = blogPosts.length;
|
const publishedPosts = blogPosts.length;
|
||||||
const featuredStudios = studios.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(
|
const overviewStats = useMemo(
|
||||||
() => [
|
() => [
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue