-
Notifications
You must be signed in to change notification settings - Fork 642
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add desktop download URL and instructions
- add a downloadUrls.desktop property - add a wallet.desktop.instructions property - set these on the Ledger connector to present desktop and mobile app download buttons for Ledger Live
- Loading branch information
1 parent
88168e1
commit ab6d1f9
Showing
8 changed files
with
259 additions
and
9 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,42 @@ | ||
--- | ||
'@rainbow-me/rainbowkit': patch | ||
--- | ||
|
||
**Improved desktop app download support** | ||
|
||
RainbowKit wallet connectors now support a desktop download link and desktop | ||
app instructions. | ||
|
||
dApps that utilize the Custom Wallets API can reference the updated docs | ||
[here](https://www.rainbowkit.com/docs/custom-wallets). | ||
|
||
```ts | ||
{ | ||
downloadUrls: { | ||
desktop: 'https://my-wallet/desktop-app', | ||
} | ||
} | ||
``` | ||
|
||
There is a new 'connect' step on the instructions that shows a connect button | ||
you can use after installing the app. | ||
|
||
```ts | ||
return { | ||
connector, | ||
desktop: { | ||
getUri, | ||
instructions: { | ||
learnMoreUrl: 'https://my-wallet/learn-more', | ||
steps: [ | ||
// ... | ||
{ | ||
description: 'Connect to wallet' | ||
step: 'connect', | ||
title: 'Connect', | ||
} | ||
] | ||
}, | ||
}, | ||
} | ||
``` |
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
Oops, something went wrong.