From cd6a3616d82352750acfe62dcd54750a2001135e 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 | 5 ++++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/src/pages/SignWithCosmos.tsx b/src/pages/SignWithCosmos.tsx index 46a1db8..06d76e4 100644 --- a/src/pages/SignWithCosmos.tsx +++ b/src/pages/SignWithCosmos.tsx @@ -99,6 +99,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 51b9754..ef8f025 100644 --- a/src/pages/SignWithNitroKey.tsx +++ b/src/pages/SignWithNitroKey.tsx @@ -45,7 +45,10 @@ const SignWithNitroKey = () => { const signEth = async () => { if (session && signClient) { try { - setIsLoading(true) + 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({