From 69e60ca48095b60dc9ad4848742b414a429b6202 Mon Sep 17 00:00:00 2001 From: Shiv Bhonde Date: Tue, 27 Feb 2024 20:15:58 +0530 Subject: [PATCH] change timestamp => approvedAt --- packages/nextjs/app/_components/ActiveGrants.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/nextjs/app/_components/ActiveGrants.tsx b/packages/nextjs/app/_components/ActiveGrants.tsx index 4f32fa7..7f67789 100644 --- a/packages/nextjs/app/_components/ActiveGrants.tsx +++ b/packages/nextjs/app/_components/ActiveGrants.tsx @@ -4,7 +4,7 @@ import { getAllActiveGrants } from "~~/services/database/grants"; import { GrantData } from "~~/services/database/schema"; import { formatDateFromNow } from "~~/utils/grants"; -const ActiveGrantRow = ({ title, askAmount, builder, timestamp }: GrantData) => { +const ActiveGrantRow = ({ title, askAmount, builder, approvedAt }: GrantData) => { return ( {title} @@ -12,7 +12,7 @@ const ActiveGrantRow = ({ title, askAmount, builder, timestamp }: GrantData) =>
- {formatDateFromNow(timestamp)} + {approvedAt ? formatDateFromNow(approvedAt) : "-"} ); };