Skip to content

Commit

Permalink
added proof 2
Browse files Browse the repository at this point in the history
  • Loading branch information
cjinghong committed May 17, 2024
1 parent 81cfbbf commit bc01701
Show file tree
Hide file tree
Showing 5 changed files with 1,241 additions and 18 deletions.
4 changes: 1 addition & 3 deletions governance/src/components/Wallet/Airdrop/AirdropModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ import RBNClaimModalContent from "shared/lib/components/Common/RBNClaimModalCont
import { usePendingTransactions } from "shared/lib/hooks/pendingTransactionsContext";
import { useWeb3Context } from "shared/lib/hooks/web3Context";
import useAirdrop from "../../../hooks/airdrop/useAirdrop";
import useMerkleDistributor from "../../../hooks/useMerkleDistributor";
import AirdropInfo from "./AirdropInfo";

interface AirdropModalProps {
Expand All @@ -18,10 +17,9 @@ const AirdropModal: React.FC<AirdropModalProps> = ({ show, onClose }) => {
const [step, setStep] = useState<"info" | "claim" | "claiming" | "claimed">(
"info"
);
const merkleDistributor = useMerkleDistributor();
const { account } = useWeb3Wallet();
const { provider } = useWeb3Context();
const { loading, airdropInfo } = useAirdrop();
const { merkleDistributor, loading, airdropInfo } = useAirdrop();
const { addPendingTransaction } = usePendingTransactions();

const claimAirdrop = useCallback(async () => {
Expand Down
Loading

0 comments on commit bc01701

Please sign in to comment.