Skip to content

Commit 8cab127

Browse files
hide attestation (#3690)
1 parent 828a7d0 commit 8cab127

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

packages/grant-explorer/src/features/contributors/components/RoundDonations/TransactionHeader.tsx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ import { getTxBlockExplorerLink } from "common";
55
import { truncateAddress } from "../../utils/address";
66
import { MintingActionButton } from "../Buttons";
77
import { Contribution, MintingAttestationIdsData } from "data-layer";
8+
import { useDebugMode } from "../../../api/utils";
89

910
interface AttestationData {
1011
attestation?: MintingAttestationIdsData;
@@ -30,6 +31,7 @@ export function TransactionHeader({
3031
transactionHash
3132
);
3233
const parcialTransactionHash = truncateAddress(transactionHash, 5);
34+
const debugModeEnabled = useDebugMode();
3335

3436
return (
3537
<div className="bg-grey-75 rounded-lg gap-2 p-4 flex flex-col sm:flex-row items-center justify-between">
@@ -43,11 +45,13 @@ export function TransactionHeader({
4345
<ArrowTopRightOnSquareIcon className="size-4 text-black" />
4446
</a>
4547
</span>
48+
{debugModeEnabled &&
4649
<MintingActionButton
4750
transaction={{ hash: transactionHash, chainId: transactionChainId }}
4851
contributions={contributions}
4952
attestationData={{ attestation, isFetchingAttestations, refetch }}
5053
/>
54+
}
5155
</div>
5256
);
5357
}

packages/grant-explorer/src/features/round/ThankYou.tsx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ import { AttestationChainId } from "../attestations/utils/constants";
3030
import { ethers } from "ethers";
3131
import { useAttestationFee } from "../contributors/hooks/useMintingAttestations";
3232
import { useAttestationStore } from "../../attestationStore";
33+
import { useDebugMode } from "../api/utils";
3334

3435
export default function ThankYou() {
3536
datadogLogs.logger.info(
@@ -215,6 +216,7 @@ export default function ThankYou() {
215216
: project.round,
216217
})),
217218
};
219+
const debugModeEnabled = useDebugMode();
218220

219221
return (
220222
<>
@@ -237,6 +239,7 @@ export default function ThankYou() {
237239
</div>
238240

239241
{/* Right Section */}
242+
{debugModeEnabled &&
240243
<div className="w-full my-[5%] lg:w-1/2 ">
241244
<div className="flex flex-col items-center justify-center">
242245
{/* Main content */}
@@ -261,6 +264,7 @@ export default function ThankYou() {
261264
</div>
262265
</div>
263266
</div>
267+
}
264268
</div>
265269
) : minted ? (
266270
<div className="flex flex-col items-center justify-center max-w-screen-2xl text-center">

0 commit comments

Comments
 (0)