diff --git a/packages/nextjs/app/_components/ActiveGrants.tsx b/packages/nextjs/app/_components/ActiveGrants.tsx index 83902f5..c704917 100644 --- a/packages/nextjs/app/_components/ActiveGrants.tsx +++ b/packages/nextjs/app/_components/ActiveGrants.tsx @@ -10,7 +10,7 @@ const ActiveGrantRow = ({ title, askAmount, builder, approvedAt }: GrantData) => {title} {askAmount} ETH -
+
{approvedAt ? formatDateFromNow(approvedAt) : "-"} diff --git a/packages/nextjs/app/_components/CompletedGrants.tsx b/packages/nextjs/app/_components/CompletedGrants.tsx index 9caa567..c961fe8 100644 --- a/packages/nextjs/app/_components/CompletedGrants.tsx +++ b/packages/nextjs/app/_components/CompletedGrants.tsx @@ -23,7 +23,7 @@ const CompletedGrantCard = ({ title, description, askAmount, builder, link, comp

{title}

-
+

{askAmount} ETH

diff --git a/packages/nextjs/app/admin/_components/GrantReview.tsx b/packages/nextjs/app/admin/_components/GrantReview.tsx index 13cab66..da31696 100644 --- a/packages/nextjs/app/admin/_components/GrantReview.tsx +++ b/packages/nextjs/app/admin/_components/GrantReview.tsx @@ -103,14 +103,7 @@ export const GrantReview = ({ grant }: { grant: GrantDataWithBuilder }) => { ({grant.id})

{grant.description}

diff --git a/packages/nextjs/components/scaffold-eth/Address.tsx b/packages/nextjs/components/scaffold-eth/Address.tsx index bc8bfff..001ad24 100644 --- a/packages/nextjs/components/scaffold-eth/Address.tsx +++ b/packages/nextjs/components/scaffold-eth/Address.tsx @@ -16,6 +16,7 @@ type AddressProps = { disableAddressLink?: boolean; format?: "short" | "long"; size?: "xs" | "sm" | "base" | "lg" | "xl" | "2xl" | "3xl"; + link?: string; }; const blockieSizeMap = { @@ -31,7 +32,7 @@ const blockieSizeMap = { /** * Displays an address (or ENS) with a Blockie image and option to copy address. */ -export const Address = ({ address, disableAddressLink, format, size = "base" }: AddressProps) => { +export const Address = ({ address, disableAddressLink, format, size = "base", link }: AddressProps) => { const [ens, setEns] = useState(); const [ensAvatar, setEnsAvatar] = useState(); const [addressCopied, setAddressCopied] = useState(false); @@ -71,7 +72,7 @@ export const Address = ({ address, disableAddressLink, format, size = "base" }: return Wrong address; } - const blockExplorerAddressLink = getBlockExplorerAddressLink(targetNetwork, address); + const destinationHref = link ?? getBlockExplorerAddressLink(targetNetwork, address); let displayAddress = address?.slice(0, 5) + "..." + address?.slice(-4); if (ens) { @@ -91,15 +92,15 @@ export const Address = ({ address, disableAddressLink, format, size = "base" }:
{disableAddressLink ? ( {displayAddress} - ) : targetNetwork.id === hardhat.id ? ( + ) : targetNetwork.id === hardhat.id && !Boolean(link) ? ( - {displayAddress} + {displayAddress} ) : ( {displayAddress}