Skip to content

Commit 15478e5

Browse files
feat: update donation table ui
1 parent 077e8a4 commit 15478e5

File tree

2 files changed

+4
-16
lines changed

2 files changed

+4
-16
lines changed

packages/grant-explorer/src/features/contributors/DirectDonationTable.tsx renamed to packages/grant-explorer/src/features/contributors/DirectDonationsTable.tsx

Lines changed: 3 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -60,17 +60,11 @@ function TableHeader() {
6060

6161
function Table(props: { contributions: Contribution[] }) {
6262
return (
63-
<div className="bg-grey-75 rounded-lg p-2 py-1">
64-
<div className="mt-4 overflow-hidden">
63+
<div className="rounded-lg p-2 py-1">
64+
<div className="overflow-hidden">
6565
<div className="mx-auto">
6666
<div>
6767
<table className="w-full text-left">
68-
<thead className="font-sans text-lg">
69-
<tr>
70-
<th>Project</th>
71-
<th>Donation</th>
72-
</tr>
73-
</thead>
7468
<tbody>
7569
{props.contributions.length > 0 &&
7670
props.contributions
@@ -105,13 +99,7 @@ function Table(props: { contributions: Contribution[] }) {
10599
<Link
106100
className={`underline inline-block lg:pr-2 lg:max-w-[300px] max-w-[75px] 2xl:max-w-fit truncate`}
107101
title={contribution.projectId.trim()}
108-
to={`/round/${
109-
contribution.chainId
110-
}/${contribution.roundId
111-
.toString()
112-
.toLowerCase()}/${
113-
contribution.applicationId
114-
}`}
102+
to={`/projects/${contribution.projectId}`}
115103
target="_blank"
116104
>
117105
{contribution.projectId.trim()}

packages/grant-explorer/src/features/contributors/ViewContributionHistory.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ import {
1717
} from "common";
1818
import { Contribution } from "data-layer";
1919
import { normalize } from "viem/ens";
20-
import { DirectDonationsTable } from "./DirectDonationTable";
20+
import { DirectDonationsTable } from "./DirectDonationsTable";
2121

2222
const DonationHistoryBanner = lazy(
2323
() => import("../../assets/DonationHistoryBanner")

0 commit comments

Comments
 (0)