diff --git a/docs/react.claimineligibilityparameters.md b/docs/react.claimineligibilityparameters.md index ba78182..6aa477b 100644 --- a/docs/react.claimineligibilityparameters.md +++ b/docs/react.claimineligibilityparameters.md @@ -13,7 +13,7 @@ The options to be passed as the second parameter to the `useClaimIneligibilityRe ```typescript export declare type ClaimIneligibilityParameters = { - walletAddress?: WalletAddress; + walletAddress: WalletAddress; quantity: string | number; }; ``` diff --git a/docs/react.useclaimineligibilityreasons.md b/docs/react.useclaimineligibilityreasons.md index 7efc9c6..358659e 100644 --- a/docs/react.useclaimineligibilityreasons.md +++ b/docs/react.useclaimineligibilityreasons.md @@ -31,20 +31,20 @@ a response object with the resons for the claim ineligibility ```javascript -const { data: activeClaimCondition, isLoading, error } = useClaimIneligibilityReasons(); +const { data: activeClaimCondition, isLoading, error } = useClaimIneligibilityReasons(, { walletAddress: }); ``` ## Example 2 ```javascript -const { data: claimIneligibilityReasons, isLoading, error } = useClaimIneligibilityReasons(, {quantity: }); +const { data: claimIneligibilityReasons, isLoading, error } = useClaimIneligibilityReasons(, { quantity: , walletAddress: }); ``` ## Example 3 ```javascript -const { data: claimIneligibilityReasons, isLoading, error } = useClaimIneligibilityReasons(, {quantity: }, ); +const { data: claimIneligibilityReasons, isLoading, error } = useClaimIneligibilityReasons(, { quantity: , walletAddress: }, ); ``` diff --git a/docs/snippets.json b/docs/snippets.json index 569d649..19800fc 100644 --- a/docs/snippets.json +++ b/docs/snippets.json @@ -228,7 +228,7 @@ }, { "name": "useClaimIneligibilityReasons", - "example": "const { data: claimIneligibilityReasons, isLoading, error } = useClaimIneligibilityReasons(, {quantity: }, );", + "example": "const { data: claimIneligibilityReasons, isLoading, error } = useClaimIneligibilityReasons(, { quantity: , walletAddress: }, );", "reference": "https://portal.thirdweb.com/react/react.useclaimineligibilityreasons" }, { @@ -413,7 +413,7 @@ }, { "name": "useClaimIneligibilityReasons", - "example": "const { data: claimIneligibilityReasons, isLoading, error } = useClaimIneligibilityReasons(, {quantity: }, );", + "example": "const { data: claimIneligibilityReasons, isLoading, error } = useClaimIneligibilityReasons(, { quantity: , walletAddress: }, );", "reference": "https://portal.thirdweb.com/react/react.useclaimineligibilityreasons" }, { diff --git a/etc/react.api.md b/etc/react.api.md index ff90f95..0e8a8c7 100644 --- a/etc/react.api.md +++ b/etc/react.api.md @@ -103,7 +103,7 @@ export type ChainRpc = Record = TContract extends Erc1155 * Use this to check for reasons that prevent claiming for either ERC20, ERC721 or ERC1155 based contracts. They need to extend the `claimCondition` extension for this hook to work. * @example * ```javascript - * const { data: activeClaimCondition, isLoading, error } = useClaimIneligibilityReasons(); + * const { data: activeClaimCondition, isLoading, error } = useClaimIneligibilityReasons(, { walletAddress: }); * ``` * @example * ```javascript - * const { data: claimIneligibilityReasons, isLoading, error } = useClaimIneligibilityReasons(, {quantity: }); + * const { data: claimIneligibilityReasons, isLoading, error } = useClaimIneligibilityReasons(, { quantity: , walletAddress: }); * ``` * @example * ```javascript - * const { data: claimIneligibilityReasons, isLoading, error } = useClaimIneligibilityReasons(, {quantity: }, ); + * const { data: claimIneligibilityReasons, isLoading, error } = useClaimIneligibilityReasons(, { quantity: , walletAddress: }, ); * ``` * * @param contract - an instance of a contract that extends the ERC20, ERC721 or ERC1155 spec and implements the `claimConditions` extension.