Skip to content

Commit

Permalink
Revert "hide attestation (#3690)"
Browse files Browse the repository at this point in the history
This reverts commit 8cab127.
  • Loading branch information
thelostone-mc authored Oct 16, 2024
1 parent 8cab127 commit 65f5b59
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ import { getTxBlockExplorerLink } from "common";
import { truncateAddress } from "../../utils/address";
import { MintingActionButton } from "../Buttons";
import { Contribution, MintingAttestationIdsData } from "data-layer";
import { useDebugMode } from "../../../api/utils";

interface AttestationData {
attestation?: MintingAttestationIdsData;
Expand All @@ -31,7 +30,6 @@ export function TransactionHeader({
transactionHash
);
const parcialTransactionHash = truncateAddress(transactionHash, 5);
const debugModeEnabled = useDebugMode();

return (
<div className="bg-grey-75 rounded-lg gap-2 p-4 flex flex-col sm:flex-row items-center justify-between">
Expand All @@ -45,13 +43,11 @@ export function TransactionHeader({
<ArrowTopRightOnSquareIcon className="size-4 text-black" />
</a>
</span>
{debugModeEnabled &&
<MintingActionButton
transaction={{ hash: transactionHash, chainId: transactionChainId }}
contributions={contributions}
attestationData={{ attestation, isFetchingAttestations, refetch }}
/>
}
</div>
);
}
4 changes: 0 additions & 4 deletions packages/grant-explorer/src/features/round/ThankYou.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@ import { AttestationChainId } from "../attestations/utils/constants";
import { ethers } from "ethers";
import { useAttestationFee } from "../contributors/hooks/useMintingAttestations";
import { useAttestationStore } from "../../attestationStore";
import { useDebugMode } from "../api/utils";

export default function ThankYou() {
datadogLogs.logger.info(
Expand Down Expand Up @@ -216,7 +215,6 @@ export default function ThankYou() {
: project.round,
})),
};
const debugModeEnabled = useDebugMode();

return (
<>
Expand All @@ -239,7 +237,6 @@ export default function ThankYou() {
</div>

{/* Right Section */}
{debugModeEnabled &&
<div className="w-full my-[5%] lg:w-1/2 ">
<div className="flex flex-col items-center justify-center">
{/* Main content */}
Expand All @@ -264,7 +261,6 @@ export default function ThankYou() {
</div>
</div>
</div>
}
</div>
) : minted ? (
<div className="flex flex-col items-center justify-center max-w-screen-2xl text-center">
Expand Down

0 comments on commit 65f5b59

Please sign in to comment.