From 630e9eba1516b45190b812480068e700c5ebc9ad Mon Sep 17 00:00:00 2001 From: noah Date: Thu, 9 May 2024 09:16:06 -0700 Subject: [PATCH] fix iframe docs Signed-off-by: noah --- docs/docs/guides/connect-using-iframe.md | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/docs/docs/guides/connect-using-iframe.md b/docs/docs/guides/connect-using-iframe.md index 5d6892e..ec2e333 100644 --- a/docs/docs/guides/connect-using-iframe.md +++ b/docs/docs/guides/connect-using-iframe.md @@ -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` @@ -46,8 +44,8 @@ const isIframeAvailable = checkWallet(WalletType.COSMIFRAME); return ( <> - {isKeplrSupported && ( - + {isIframeAvailable && ( + )} );