From f7e3efac428980e346370b7a713a2fbeac309362 Mon Sep 17 00:00:00 2001 From: John Ballesteros Date: Tue, 12 Nov 2024 07:18:55 +0800 Subject: [PATCH] refactor: add view impact cta Completes JOB-827 --- .../components/grant-list/grant-list-item.tsx | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/src/grants/components/grant-list/grant-list-item.tsx b/src/grants/components/grant-list/grant-list-item.tsx index db3b8cc..ce0e32b 100644 --- a/src/grants/components/grant-list/grant-list-item.tsx +++ b/src/grants/components/grant-list/grant-list-item.tsx @@ -1,6 +1,6 @@ import Link from 'next/link'; -import { Avatar } from '@nextui-org/react'; +import { Avatar, Button } from '@nextui-org/react'; import { ROUTE_SECTIONS } from '@/shared/core/constants'; import { cn } from '@/shared/utils/cn'; @@ -95,9 +95,20 @@ export const GrantListItem = ({ grant, isLink = true, ctaText }: Props) => { )} -
+
+ {!ctaText && ( +
+ +
+ )} +