Skip to content
This repository has been archived by the owner on Jan 5, 2024. It is now read-only.

Commit

Permalink
Add hideTestnetFaucet option to ConnectWallet button (#818)
Browse files Browse the repository at this point in the history
* ConnectWallet Button: hideTestnetFaucet

* Update for react native

---------

Signed-off-by: ciaranightingale <[email protected]>
Co-authored-by: ciaranightingale <[email protected]>
  • Loading branch information
kien-ngo and ciaranightingale authored Sep 20, 2023
1 parent 62b1dca commit da54a36
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 0 deletions.
10 changes: 10 additions & 0 deletions docs/react-native/ui-components/ConnectWallet.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -94,3 +94,13 @@ function App() {
);
}
```

### hideTestnetFaucet (optional)

Hide option to request testnet funds for testnets in dropdown

```jsx
<ConnectWallet
hideTestnetFaucet={true}
/>
```
10 changes: 10 additions & 0 deletions docs/react/ui-components/ConnectWallet.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -245,6 +245,16 @@ Specify where should the dropdown menu open relative to the Connect Wallet Butto
/>
```

### hideTestnetFaucet (optional)

Hide option to request testnet funds for testnets in dropdown

```jsx
<ConnectWallet
hideTestnetFaucet={true}
/>
```

### Show "Terms of Service" and/or "Privacy Policy" links

You can show a "Terms of Service" and/or "Privacy Policy" link in the ConnectWallet Modal by passing the `termsOfServiceUrl` and/or `privacyPolicyUrl` props
Expand Down

1 comment on commit da54a36

@vercel
Copy link

@vercel vercel bot commented on da54a36 Sep 20, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.