File tree Expand file tree Collapse file tree 2 files changed +8
-0
lines changed
packages/grant-explorer/src/features
contributors/components/RoundDonations Expand file tree Collapse file tree 2 files changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -5,6 +5,7 @@ import { getTxBlockExplorerLink } from "common";
5
5
import { truncateAddress } from "../../utils/address" ;
6
6
import { MintingActionButton } from "../Buttons" ;
7
7
import { Contribution , MintingAttestationIdsData } from "data-layer" ;
8
+ import { useDebugMode } from "../../../api/utils" ;
8
9
9
10
interface AttestationData {
10
11
attestation ?: MintingAttestationIdsData ;
@@ -30,6 +31,7 @@ export function TransactionHeader({
30
31
transactionHash
31
32
) ;
32
33
const parcialTransactionHash = truncateAddress ( transactionHash , 5 ) ;
34
+ const debugModeEnabled = useDebugMode ( ) ;
33
35
34
36
return (
35
37
< 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({
43
45
< ArrowTopRightOnSquareIcon className = "size-4 text-black" />
44
46
</ a >
45
47
</ span >
48
+ { debugModeEnabled &&
46
49
< MintingActionButton
47
50
transaction = { { hash : transactionHash , chainId : transactionChainId } }
48
51
contributions = { contributions }
49
52
attestationData = { { attestation, isFetchingAttestations, refetch } }
50
53
/>
54
+ }
51
55
</ div >
52
56
) ;
53
57
}
Original file line number Diff line number Diff line change @@ -30,6 +30,7 @@ import { AttestationChainId } from "../attestations/utils/constants";
30
30
import { ethers } from "ethers" ;
31
31
import { useAttestationFee } from "../contributors/hooks/useMintingAttestations" ;
32
32
import { useAttestationStore } from "../../attestationStore" ;
33
+ import { useDebugMode } from "../api/utils" ;
33
34
34
35
export default function ThankYou ( ) {
35
36
datadogLogs . logger . info (
@@ -215,6 +216,7 @@ export default function ThankYou() {
215
216
: project . round ,
216
217
} ) ) ,
217
218
} ;
219
+ const debugModeEnabled = useDebugMode ( ) ;
218
220
219
221
return (
220
222
< >
@@ -237,6 +239,7 @@ export default function ThankYou() {
237
239
</ div >
238
240
239
241
{ /* Right Section */ }
242
+ { debugModeEnabled &&
240
243
< div className = "w-full my-[5%] lg:w-1/2 " >
241
244
< div className = "flex flex-col items-center justify-center" >
242
245
{ /* Main content */ }
@@ -261,6 +264,7 @@ export default function ThankYou() {
261
264
</ div >
262
265
</ div >
263
266
</ div >
267
+ }
264
268
</ div >
265
269
) : minted ? (
266
270
< div className = "flex flex-col items-center justify-center max-w-screen-2xl text-center" >
You can’t perform that action at this time.
0 commit comments