Skip to content

Commit

Permalink
Impersonator Link (#122)
Browse files Browse the repository at this point in the history
  • Loading branch information
carletex authored Apr 30, 2024
1 parent d34fcc0 commit a5ba64c
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions packages/nextjs/app/admin/_components/GrantReview.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,10 @@ const BuilderSocials = ({ socialLinks }: { socialLinks?: SocialLinks }) => {
);
};

const getImpersonatorLink = (address: string) => {
return `https://impersonator.vision/?address=${address}&url=https://grants.buidlguidl.com/my-grants`;
};

type GrantReviewProps = {
grant: GrantDataWithPrivateNote;
selected: boolean;
Expand Down Expand Up @@ -146,10 +150,12 @@ export const GrantReview = ({ grant, selected, toggleSelection }: GrantReviewPro
<div className="flex gap-4 items-center relative">
<Address address={grant.builder} link={`https://app.buidlguidl.com/builders/${grant.builder}`} />
{grantsCount > 0 && (
<span className="group text-sm text-gray-500 tooltip" data-tip={otherGrantsTooltip}>
{grantsCount} {grantsCount === 1 ? "submission" : "submissions"}{" "}
<QuestionMarkCircleIcon className="h-4 w-4 inline" />
</span>
<a href={getImpersonatorLink(grant.builder)} target="_blank" rel="noreferrer">
<span className="group text-sm text-gray-500 tooltip" data-tip={otherGrantsTooltip}>
{grantsCount} {grantsCount === 1 ? "submission" : "submissions"}{" "}
<QuestionMarkCircleIcon className="h-4 w-4 inline" />
</span>
</a>
)}
</div>
<div className="flex gap-4 items-center mt-3">
Expand Down

0 comments on commit a5ba64c

Please sign in to comment.