Skip to content

Commit

Permalink
remove limit and length check for seall acitve grants
Browse files Browse the repository at this point in the history
  • Loading branch information
technophile-04 committed Aug 11, 2024
1 parent 527fd63 commit 8b0fec6
Showing 1 changed file with 6 additions and 9 deletions.
15 changes: 6 additions & 9 deletions packages/nextjs/app/_components/ActiveGrants.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,7 @@ const ActiveGrantRow = ({ title, askAmount, builder, approvedAt }: GrantData) =>
};

export const ActiveGrants = async () => {
const LIMIT = 8;
const activeGrants = await getAllActiveGrants(LIMIT);
const activeGrants = await getAllActiveGrants();

if (!activeGrants.length) {
return null;
Expand Down Expand Up @@ -57,13 +56,11 @@ export const ActiveGrants = async () => {
</tbody>
</table>
</div>
{activeGrants.length > LIMIT && (
<div className="link w-full text-center mt-6 lg:text-lg">
<a href="/active-grants" className="">
See all active grants
</a>
</div>
)}
<div className="link w-full text-center mt-6 lg:text-lg">
<a href="/active-grants" className="">
See all active grants
</a>
</div>
</div>
</div>
);
Expand Down

0 comments on commit 8b0fec6

Please sign in to comment.