Skip to content

Commit

Permalink
change timestamp => approvedAt
Browse files Browse the repository at this point in the history
  • Loading branch information
technophile-04 committed Feb 27, 2024
1 parent 911c239 commit 69e60ca
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/nextjs/app/_components/ActiveGrants.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,15 @@ 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 (
<tr className="border-b border-black p-10 text-base">
<td className="p-4 pl-4">{title}</td>
<td className="p-4 pl-4">{askAmount} ETH</td>
<td className="p-4 pl-4">
<Address address={builder} />
</td>
<td className="p-4 pl-4">{formatDateFromNow(timestamp)}</td>
<td className="p-4 pl-4">{approvedAt ? formatDateFromNow(approvedAt) : "-"}</td>
</tr>
);
};
Expand Down

0 comments on commit 69e60ca

Please sign in to comment.