-
-
Notifications
You must be signed in to change notification settings - Fork 33
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(docs): add useActiveWalletType hook
- Loading branch information
Showing
1 changed file
with
34 additions
and
0 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,34 @@ | ||
# useActiveWalletType | ||
|
||
hook to retrieve current active [`WalletType`](../docs/types/walletType.md) | ||
|
||
#### Usage | ||
|
||
```tsx | ||
import { useActiveWalletType } from "graz"; | ||
|
||
function App() { | ||
const { walletType } = useActiveWalletType(); | ||
|
||
return ( | ||
<div> | ||
<span>Connected to {walletType}</span> | ||
</div> | ||
); | ||
} | ||
``` | ||
|
||
#### Return Value | ||
|
||
```tsx | ||
{ | ||
walletType: boolean; | ||
isCosmostation: boolean; | ||
isCosmostationMobile: boolean; | ||
isKeplr: boolean; | ||
isKeplrMobile: boolean; | ||
isLeap: boolean; | ||
isLeapMobile: boolean; | ||
isWalletConnect: boolean; | ||
} | ||
``` |
d65c229
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to the following URLs:
graz-templates-default – ./templates/default
graz-templates-default.vercel.app
graz-templates-default-git-dev-strangelove-ventures.vercel.app
graz-templates-default-strangelove-ventures.vercel.app
d65c229
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to the following URLs:
graz-vite-example – ./example/vite
graz-vite-example-strangelove-ventures.vercel.app
graz-vite-example.vercel.app
graz-vite-example-git-dev-strangelove-ventures.vercel.app