Skip to content

Commit 7f8b7fe

Browse files
revert dbug (#3691)
1 parent 3edc44c commit 7f8b7fe

File tree

2 files changed

+26
-34
lines changed

2 files changed

+26
-34
lines changed

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

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ 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";
98

109
interface AttestationData {
1110
attestation?: MintingAttestationIdsData;
@@ -31,7 +30,6 @@ export function TransactionHeader({
3130
transactionHash
3231
);
3332
const parcialTransactionHash = truncateAddress(transactionHash, 5);
34-
const debugModeEnabled = useDebugMode();
3533

3634
return (
3735
<div className="bg-grey-75 rounded-lg gap-2 p-4 flex flex-col sm:flex-row items-center justify-between">
@@ -45,13 +43,11 @@ export function TransactionHeader({
4543
<ArrowTopRightOnSquareIcon className="size-4 text-black" />
4644
</a>
4745
</span>
48-
{debugModeEnabled &&
4946
<MintingActionButton
5047
transaction={{ hash: transactionHash, chainId: transactionChainId }}
5148
contributions={contributions}
5249
attestationData={{ attestation, isFetchingAttestations, refetch }}
5350
/>
54-
}
5551
</div>
5652
);
5753
}

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

Lines changed: 26 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@ import { useEstimateGas } from "../../hooks/attestations/useEstimateGas";
2121
import { AttestationChainId } from "../attestations/utils/constants";
2222
import { useAttestationFee } from "../contributors/hooks/useMintingAttestations";
2323
import { useAttestationStore } from "../../attestationStore";
24-
import { useDebugMode } from "../api/utils";
2524
import { RainbowBorderButton } from "../contributors/components/Buttons/RainbowBorderButton";
2625
import Modal from "../common/components/Modal";
2726

@@ -170,7 +169,6 @@ export default function ThankYou() {
170169
? false
171170
: balance.value < attestationFee + (gasEstimation ?? 0n);
172171

173-
const debugModeEnabled = useDebugMode();
174172

175173
return (
176174
<>
@@ -193,38 +191,36 @@ export default function ThankYou() {
193191
</div>
194192

195193
{/* Right Section */}
196-
{debugModeEnabled && (
197-
<div className="w-full lg:w-1/2 ">
198-
<div className="flex flex-col items-center justify-center">
199-
{/* Main content */}
200-
<div className="w-full max-w-[800px] min-h-svh overflow-hidden bg-gradient-to-b from-[#EBEBEB] to-transparent rounded-t-[400px] flex flex-col items-center justify-center pt-20 px-4 mx-auto">
201-
<div className="flex flex-col items-center">
202-
<div className="relative max-w-[500px] z-10 text-center">
203-
<h1 className="text-5xl mb-2 font-modern-era-bold">
204-
Mint your Impact
205-
</h1>
206-
<p className="mt-1 text-lg font-modern-era-regular">
207-
Capture your contribution onchain with an
208-
attestation and receive a unique visual that
209-
symbolizes your donation.
210-
</p>
211-
<p className="my-2 text-lg font-modern-era-regular">
212-
This visual reflects your onchain attestation,
213-
marking your support in a meaningful way.
214-
</p>
215-
</div>
216-
<PreviewFrame
217-
handleSelectBackground={handleSelectBackground}
218-
mint={toggleModal}
219-
/>
194+
<div className="w-full lg:w-1/2 ">
195+
<div className="flex flex-col items-center justify-center">
196+
{/* Main content */}
197+
<div className="w-full max-w-[800px] min-h-svh overflow-hidden bg-gradient-to-b from-[#EBEBEB] to-transparent rounded-t-[400px] flex flex-col items-center justify-center pt-20 px-4 mx-auto">
198+
<div className="flex flex-col items-center">
199+
<div className="relative max-w-[500px] z-10 text-center">
200+
<h1 className="text-5xl mb-2 font-modern-era-bold">
201+
Mint your Impact
202+
</h1>
203+
<p className="mt-1 text-lg font-modern-era-regular">
204+
Capture your contribution onchain with an
205+
attestation and receive a unique visual that
206+
symbolizes your donation.
207+
</p>
208+
<p className="my-2 text-lg font-modern-era-regular">
209+
This visual reflects your onchain attestation,
210+
marking your support in a meaningful way.
211+
</p>
220212
</div>
213+
<PreviewFrame
214+
handleSelectBackground={handleSelectBackground}
215+
mint={toggleModal}
216+
/>
221217
</div>
222218
</div>
223-
<div className="fixed -bottom-6 right-11 w-full z-20">
224-
<Footer />
225-
</div>
226219
</div>
227-
)}
220+
<div className="fixed -bottom-6 right-11 w-full z-20">
221+
<Footer />
222+
</div>
223+
</div>
228224
</div>
229225
) : minted ? (
230226
<div className="rounded-xl absolute top-20 flex flex-col items-center text-center gap-6 px-[64px] py-8 backdrop-blur-xl">

0 commit comments

Comments
 (0)