From cafca3acb038dfee0c9cc2d27279eef3c5db5e93 Mon Sep 17 00:00:00 2001 From: "Shiv Bhonde | shivbhonde.eth" Date: Mon, 26 Feb 2024 16:53:28 +0530 Subject: [PATCH] Tweak completed grants page (#43) --- .../app/_components/CompletedGrants.tsx | 41 +++++++++++-------- 1 file changed, 23 insertions(+), 18 deletions(-) diff --git a/packages/nextjs/app/_components/CompletedGrants.tsx b/packages/nextjs/app/_components/CompletedGrants.tsx index db3f513..0c39cdc 100644 --- a/packages/nextjs/app/_components/CompletedGrants.tsx +++ b/packages/nextjs/app/_components/CompletedGrants.tsx @@ -1,17 +1,28 @@ import Image from "next/image"; +import { Address } from "~~/components/scaffold-eth"; import { getAllCompletedGrants } from "~~/services/database/grants"; import { GrantData } from "~~/services/database/schema"; -const CompletedGrantCard = ({ title, description, askAmount }: GrantData) => { +const CompletedGrantCard = ({ title, description, askAmount, builder, link }: GrantData) => { return ( -
-
-
Learn more
+
+
+ + Learn more +

{title}

-
-

{description}

-

Amounted Granted: {askAmount} ETH

+
+
+

+ {askAmount} ETH +

+

{description}

); @@ -20,19 +31,13 @@ export const CompletedGrants = async () => { const completedGrants = await getAllCompletedGrants(); return ( -
-
-
+
+
+

Completed grants

- sparkle + sparkle
-
+
{completedGrants.map(grant => ( ))}