Skip to content

Commit

Permalink
TOOL-2831 - Update docs for showTestnetFaucet (#5868)
Browse files Browse the repository at this point in the history
  • Loading branch information
kien-ngo authored Jan 3, 2025
1 parent 8f43aa7 commit 3b1ed73
Showing 1 changed file with 7 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -216,10 +216,15 @@ export type ConnectButton_detailsModalOptions = {
/**
* Show a "Request Testnet funds" link in `ConnectButton` Details Modal when user is connected to a testnet.
*
* By default it is `false`, If you want to show the "Request Testnet funds" link when user is connected to a testnet, set this prop to `true`
* By default it is `false`, If you want to show the "Request Testnet funds" link when user is connected to a testnet, set this prop to `true`.
* Keep in mind that the link will only be shown if there are faucet links registered with the chain.
* @example
* ```tsx
* <ConnectButton showTestnetFaucet={true} />
* <ConnectButton
* detailsModal={{
* showTestnetFaucet: true,
* }}
* />
* ```
*/
showTestnetFaucet?: boolean;
Expand Down

0 comments on commit 3b1ed73

Please sign in to comment.