From 69d654c96004de46b9646cc8c6cfcc3a74e3e191 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/constants.ts | 2 +- src/pages/SignWithCosmos.tsx | 2 ++ src/pages/SignWithNitroKey.tsx | 5 ++++- 3 files changed, 7 insertions(+), 2 deletions(-) diff --git a/src/constants.ts b/src/constants.ts index 477dba9..26d9b4c 100644 --- a/src/constants.ts +++ b/src/constants.ts @@ -30,6 +30,6 @@ export const TNC_PARTICIPANT_CONTENT = `Lorem ipsum dolor sit amet, consectetur export const WALLET_DISCLAIMER_MSG = 'You are connecting to an experimental wallet! It is not secure. Do not use it elsewhere and/or for managing real assets.' -export const REDIRECT_EMAIL_MSG = 'Please check your inbox and click the link to verify your email address.' +export const REDIRECT_EMAIL_MSG = 'Please check your inbox and click the link to verify your email address.\nYou can close this window and continue from the email.'; export const ENABLE_KYC = false; 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 709b492..33f1177 100644 --- a/src/pages/SignWithNitroKey.tsx +++ b/src/pages/SignWithNitroKey.tsx @@ -48,7 +48,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({