Skip to content

Commit

Permalink
Merge pull request #99 from reown-com/feat/small-fixes-options
Browse files Browse the repository at this point in the history
feat: Small fixes options
  • Loading branch information
rohit-710 authored Oct 15, 2024
2 parents 63273ea + 1a02f65 commit 7435d1f
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 2 deletions.
15 changes: 15 additions & 0 deletions docs/appkit/shared/options.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -187,6 +187,21 @@ createAppKit({

</PlatformTabItem>
</PlatformTabs>
## enableWalletConnect

Enable or disable WalletConnect QR feature. Default is `true`.

```ts
enableWalletConnect: false
```

## debug

Enable or disable debug mode in your AppKit. This is useful if you want to see UI alerts when debugging. Default is `false`.

```ts
debug: true
```

## termsConditionsUrl

Expand Down
4 changes: 2 additions & 2 deletions docs/appkit/shared/socials.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ const modal = createAppKit({
## Options

- **_email [boolean]_** : This boolean defines whether you want to enable email login. Default `true`
- **_socials [array]_** : This array contains the list of social platforms that you want to enable for user authentication. The platforms in the example include Google, X, GitHub, Discord, Apple, Facebook and Farcaster. Default `undefined`
- **_socials [array]_** : This array contains the list of social platforms that you want to enable for user authentication. The platforms in the example include Google, X, GitHub, Discord, Apple, Facebook and Farcaster. The default value of `undefined` displays everything. Set it to `false` to disable this feature. You can also pass an empty array to disable it.
- **_emailShowWallets [boolean]_** : This boolean defines whether you want to show the wallet options on the first connect screen. If this is false and `socials` are enabled, it will show a button that directs you to a new screen displaying the wallet options. Default `true`

## User flow
Expand Down Expand Up @@ -122,7 +122,7 @@ By configuring the `socials` option in the `features` parameter, you can control
<img width={300} src="/img/w3m/auth/modal_wallets.webp" />
</p>

- **` socials: []`**: When you want to disable social logins.
- **`socials: []` or `socials: false`**: When you want to disable social logins.

<p align="center">
<img width={300} src="/img/w3m/auth/modal_wallets_nosocial.webp" />
Expand Down

0 comments on commit 7435d1f

Please sign in to comment.