Skip to content

Commit

Permalink
feat(docs): add useActiveWalletType hook
Browse files Browse the repository at this point in the history
  • Loading branch information
grikomsn committed Jun 16, 2023
1 parent fe61c5f commit d65c229
Showing 1 changed file with 34 additions and 0 deletions.
34 changes: 34 additions & 0 deletions docs/docs/hooks/useActiveWalletType.md
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;
}
```

2 comments on commit d65c229

@vercel
Copy link

@vercel vercel bot commented on d65c229 Jun 16, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@vercel
Copy link

@vercel vercel bot commented on d65c229 Jun 16, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.