-
{name}
-
-
{`Grantees ${grantees}`}
-
-
Networks
-
- {networks.map(({ name, logo }) => (
-
- ))}
-
-
-
{`Ecosystem ${ecosystem}`}
-
{`Total Funds $${formatNumber(totalFunds)}`}
-
{`Total Disbursed Funds $${formatNumber(totalDisbursedFunds)}`}
-
+ const content =
;
-
-
{summary}
-
- Categories
- {categories.map((category) => (
- {category}
- ))}
-
-
- Type
- {type}
-
-
+ const testProps = {
+ 'data-uuid': grant.id,
+ 'data-testid': GRANT_TEST_IDS.GRANT_ITEM,
+ };
-
- Reputations
- {reputations.map((reputation) => (
- {reputation}
- ))}
-
+ if (isCard) {
+ return (
+
+ {content}
+ );
+ }
- {cta}
+ return (
+
+ {content}
);
};
diff --git a/src/grants/core/constants.ts b/src/grants/core/constants.ts
index a125c25..074e7bc 100644
--- a/src/grants/core/constants.ts
+++ b/src/grants/core/constants.ts
@@ -1,4 +1,5 @@
export const GRANT_TEST_IDS = {
GRANT_ITEM: 'grant-item',
+ GRANT_CARD: 'grant-card',
GRANTEE_ITEM: 'grantee-item',
} as const;