-
-
-
- Pick your color
-
-
- {Object.keys(colorMapper).map((key, index) => (
-
selectBackground(key)}
- className={`w-5 h-5 rounded-full cursor-pointer ${
- selectedColor === key ? "border-1 border-black" : ""
- }`}
- style={{
- backgroundColor:
- selectedColor === key
- ? colorMapper[key as unknown as keyof typeof colorMapper]
- : defaultColor,
- }}
- />
- ))}
-
-
-
-
-
-
-
+
+
Pick your color
+ {Object.keys(colorMapper).map((key, index) => (
+
selectBackground(key)}
+ className={`w-5 h-5 rounded-full cursor-pointer ${
+ selectedColor === key ? "border-1 border-black" : ""
+ }`}
+ style={{
+ backgroundColor:
+ selectedColor === key
+ ? colorMapper[key as unknown as keyof typeof colorMapper]
+ : defaultColor,
+ }}
+ />
+ ))}
+
+
+
);
@@ -358,19 +349,18 @@ export const HiddenAttestationFrame = ({
);
};
-import bgImage from "../../assets/mint-your-impact-background.svg";
import { ImageWithLoading } from "../common/components/ImageWithLoading";
export const ImpactMintingSuccess = ({
attestationLink,
impactImageCid,
- containerSize = "w-[430px] h-[430px]",
- imageSize = "w-[400px] h-[400px]",
+ imageSize = "size-[400px]",
+ isShareButtonsAbove = true,
}: {
attestationLink: string;
impactImageCid?: string;
- containerSize?: string;
imageSize?: string;
+ isShareButtonsAbove?: boolean;
}) => {
const {
data: image,
@@ -378,23 +368,23 @@ export const ImpactMintingSuccess = ({
isFetching,
} = useGetImages(impactImageCid ? [impactImageCid] : [], !!impactImageCid);
- return (
-
-
+ return isShareButtonsAbove ? (
+ <>
-
+
+ >
+ ) : (
+ <>
+
+
+ >
);
};
diff --git a/packages/grant-explorer/src/features/attestations/components/BalanceDisplay.tsx b/packages/grant-explorer/src/features/attestations/components/BalanceDisplay.tsx
index 1380ff61f..208713d84 100644
--- a/packages/grant-explorer/src/features/attestations/components/BalanceDisplay.tsx
+++ b/packages/grant-explorer/src/features/attestations/components/BalanceDisplay.tsx
@@ -1,6 +1,7 @@
import warningIcon from "../../../assets/warning.svg";
-import ethereumIcon from "../../../assets/icons/ethereum-icon.svg";
import { formatAmount } from "../utils/formatAmount";
+import { AttestationChainId } from "../utils/constants";
+import { getChainById, stringToBlobUrl } from "common";
export const BalanceDisplay = ({
balance,
@@ -8,23 +9,35 @@ export const BalanceDisplay = ({
}: {
balance: bigint | undefined;
notEnoughFunds: boolean;
-}) => (
-
-
-
-
-
Mainnet
-
- {notEnoughFunds ? (
-
-
-
Balance: {formatAmount(balance)} ETH
-
- ) : (
-
Balance: {formatAmount(balance)} ETH
- )}
+}) => {
+ const chain = getChainById(AttestationChainId);
+
+ return (
+
+
+
+
+
{chain.prettyName}
+
+ {notEnoughFunds ? (
+
+
+
Balance: {formatAmount(balance, 3)} ETH
+
+ ) : (
+
Balance: {formatAmount(balance, 3)} ETH
+ )}
+
-
-);
+ );
+};
diff --git a/packages/grant-explorer/src/features/attestations/components/CostDetails.tsx b/packages/grant-explorer/src/features/attestations/components/CostDetails.tsx
index 320fc01bb..8addb6b93 100644
--- a/packages/grant-explorer/src/features/attestations/components/CostDetails.tsx
+++ b/packages/grant-explorer/src/features/attestations/components/CostDetails.tsx
@@ -17,7 +17,7 @@ export const CostDetails = ({
const estimatedGasFormatted = `${formatAmount(estimatedGas)} ETH`;
return (
-
+