From c461e907685b7f8c1e5c3f9ce38d6bb18557f31a Mon Sep 17 00:00:00 2001 From: IshaVenikar Date: Thu, 8 Aug 2024 18:47:55 +0530 Subject: [PATCH] Add snackbar to direct user to the wallet --- src/pages/SignWithCosmos.tsx | 2 ++ src/pages/SignWithNitroKey.tsx | 3 +++ 2 files changed, 5 insertions(+) diff --git a/src/pages/SignWithCosmos.tsx b/src/pages/SignWithCosmos.tsx index c5db0a2..478dad9 100644 --- a/src/pages/SignWithCosmos.tsx +++ b/src/pages/SignWithCosmos.tsx @@ -100,6 +100,8 @@ const SignWithCosmos = () => { try { setIsLoading(true); + enqueueSnackbar("View and sign the message from your Laconic Wallet", { variant: "info" }); + const params = { transactionMessage, signer: cosmosAddress }; const responseFromWallet = await signClient!.request<{ code: number; diff --git a/src/pages/SignWithNitroKey.tsx b/src/pages/SignWithNitroKey.tsx index 5e0e06e..73349c2 100644 --- a/src/pages/SignWithNitroKey.tsx +++ b/src/pages/SignWithNitroKey.tsx @@ -57,6 +57,9 @@ const SignWithNitroKey = () => { if (session && signClient) { try { setIsLoading(true); + + enqueueSnackbar("View and sign the message from your Laconic Wallet", { variant: "info" }); + const jsonMessage = canonicalStringify(message); const hexMsg = utf8ToHex(jsonMessage, true); const receivedEthSig: string = await signClient!.request({