Skip to content

Commit

Permalink
fix iframe docs
Browse files Browse the repository at this point in the history
Signed-off-by: noah <[email protected]>
  • Loading branch information
NoahSaso authored May 9, 2024
1 parent 9f9fba4 commit 630e9eb
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions docs/docs/guides/connect-using-iframe.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
# Connect wallet through iframe

You can connect to a specific wallet by using the `useConnect` hook. You can connect to a specific wallet by passing the `walletType` parameter to the `connect` function.

Read more about [wallet types](../types/walletType.md).
First you have to set the allowed origins for the iframe wallet, then you can connect.

### Pass allowed iframe parent origins to `grazOptions` in `GrazProvider`

Expand Down Expand Up @@ -46,8 +44,8 @@ const isIframeAvailable = checkWallet(WalletType.COSMIFRAME);

return (
<>
{isKeplrSupported && (
<button onClick={() => connect({ chainId: "cosmoshub-4", walletType: WalletType.KEPLR })}>Connect</button>
{isIframeAvailable && (
<button onClick={() => connect({ chainId: "cosmoshub-4", walletType: WalletType.COSMIFRAME })}>Connect</button>
)}
</>
);
Expand Down

0 comments on commit 630e9eb

Please sign in to comment.