Skip to content

Commit

Permalink
update ActiveGrants, Completed and GrantsReview to pass in BG app link
Browse files Browse the repository at this point in the history
  • Loading branch information
technophile-04 committed Feb 27, 2024
1 parent e9ec06f commit 14f1d52
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 10 deletions.
2 changes: 1 addition & 1 deletion packages/nextjs/app/_components/ActiveGrants.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ const ActiveGrantRow = ({ title, askAmount, builder, approvedAt }: GrantData) =>
<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} />
<Address address={builder} link={`https://app.buidlguidl.com/builders/${builder}`} />
</td>
<td className="p-4 pl-4">{approvedAt ? formatDateFromNow(approvedAt) : "-"}</td>
</tr>
Expand Down
2 changes: 1 addition & 1 deletion packages/nextjs/app/_components/CompletedGrants.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ const CompletedGrantCard = ({ title, description, askAmount, builder, link, comp
<p className="m-0 absolute bottom-4 left-4 text-lg">{title}</p>
</div>
<div className="flex flex-col gap-2 px-3">
<Address address={builder} />
<Address address={builder} link={`https://app.buidlguidl.com/builders/${builder}`} />
<p className="text-base m-0 mt-2">
<span className="font-medium">{askAmount} ETH</span>
</p>
Expand Down
9 changes: 1 addition & 8 deletions packages/nextjs/app/admin/_components/GrantReview.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -103,14 +103,7 @@ export const GrantReview = ({ grant }: { grant: GrantDataWithBuilder }) => {
<span className="text-sm text-gray-500 ml-2">({grant.id})</span>
</h3>
<div className="flex gap-4 items-center">
<a
href={`https://app.buidlguidl.com/builders/${grant.builder}`}
className="inline-block"
target="_blank"
rel="noreferrer"
>
<Address address={grant.builder} disableAddressLink />
</a>
<Address address={grant.builder} link={`https://app.buidlguidl.com/builders/${grant.builder}`} />
<BuilderSocials socialLinks={grant.builderData?.socialLinks} />
</div>
<p>{grant.description}</p>
Expand Down

0 comments on commit 14f1d52

Please sign in to comment.