Approve Button
This button approves the spending of USDC for the given network you gave to the SubbiProvider and the provided subscription contract address. It has the following props:
style (optional):
A standard CSS-in-JS style, as seen here. Because Subbi uses styled-components
under the hood, this includes pseudo elements.
onError (optional):
An optional function that is called if any of the components encounter an error. It is passed one argument: the error object in question.
onApproval (optional):
An optional function that is called upon a successful approval. The first argument of the function is a basket of properties pertaining to the user, network they are connected to and the contract they are subscribing to.
subscriptionContractAddress (REQUIRED):
The address for your deployed contract.
Usage
Last updated