Skip to content

Commit 493bf8d

Browse files
fix: jsdoc for useConnect (#2830)
1 parent a919b27 commit 493bf8d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/thirdweb/src/react/core/hooks/wallets/wallet-hooks.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ export function useSetActiveWallet() {
109109
* @example
110110
* ```jsx
111111
* import { useConnect } from "thirdweb/react";
112-
* import { metamaskWallet } from "thirdweb/wallets";
112+
* import { createWallet } from "thirdweb/wallets";
113113
*
114114
* function Example() {
115115
* const { connect, isConnecting, error } = useConnect();
@@ -118,7 +118,7 @@ export function useSetActiveWallet() {
118118
* onClick={() =>
119119
* connect(async () => {
120120
* // instantiate wallet
121-
* const wallet = metamaskWallet();
121+
* const wallet = createWallet("io.metamask");
122122
* // connect wallet
123123
* await wallet.connect();
124124
* // return the wallet

0 commit comments

Comments
 (0)