-
Notifications
You must be signed in to change notification settings - Fork 328
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ConnectWallet fixes and Improvements (#2303)
- Loading branch information
Showing
6 changed files
with
130 additions
and
78 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
--- | ||
"@thirdweb-dev/react": patch | ||
--- | ||
|
||
- Fix the closing of ConnectWallet after the wallet connection instead of showing the "Sign In" screen when Auth is enabled | ||
|
||
- Call the `onConnect` prop on `ConnectWallet` and `ConnectEmbed` component with the connected wallet instance | ||
|
||
```tsx | ||
<ConnectWallet | ||
onConnect={(wallet) => { | ||
console.log("Connected to:", wallet); | ||
}} | ||
/> | ||
``` | ||
|
||
```tsx | ||
<ConnectEmbed | ||
onConnect={(wallet) => { | ||
console.log("Connected to:", wallet); | ||
}} | ||
/> | ||
``` | ||
|
||
- Improved Sign in Screen UI for Embedded Wallet and Local Wallet with Retry and Disconnect buttons after failed sign in |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters