From 92527d1e007d0840dc6f449b685460df0e1a118f Mon Sep 17 00:00:00 2001 From: Pablo Alayeto <55535804+Pabl0cks@users.noreply.github.com> Date: Wed, 24 Apr 2024 10:00:31 +0200 Subject: [PATCH 1/2] Show count on New grants and Completed grants, if there is any --- packages/nextjs/app/admin/page.tsx | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/packages/nextjs/app/admin/page.tsx b/packages/nextjs/app/admin/page.tsx index 12597d2..4394be6 100644 --- a/packages/nextjs/app/admin/page.tsx +++ b/packages/nextjs/app/admin/page.tsx @@ -182,7 +182,9 @@ const AdminPage = () => {
-

New Grant Proposals

+

+ New Grant Proposals {newGrants && newGrants.length > 0 && `(${newGrants.length})`} +

{newGrants && newGrants.length !== 0 && (
-

Completed Grants

+

+ Completed Grants {completedGrants && completedGrants.length > 0 && `(${completedGrants.length})`} +

{completedGrants && completedGrants.length !== 0 && ( )}
@@ -208,7 +209,7 @@ const AdminPage = () => {

- Completed Grants {completedGrants && completedGrants.length > 0 && `(${completedGrants.length})`} + Completed Grants {completedGrants && completedGrants.length > 0 && <>({completedGrants.length})}

{completedGrants && completedGrants.length !== 0 && ( )}