From 051de434803cd29c21a64efb66257a6da22ff42d Mon Sep 17 00:00:00 2001 From: Cody Bender Date: Fri, 9 Aug 2024 16:59:58 -0400 Subject: [PATCH] chore: add dm mono --- public/index.html | 121 +++++++++++++++++---------------- src/pages/SignWithNitroKey.tsx | 46 +++++++------ 2 files changed, 87 insertions(+), 80 deletions(-) diff --git a/public/index.html b/public/index.html index 4fbd2e7..7fbd272 100644 --- a/public/index.html +++ b/public/index.html @@ -1,21 +1,24 @@ - + - - - - - - - - - - - Testnet Onboarding App - - - - -
-
-
-
+ } + + + + + +
+
+
- - + + diff --git a/src/pages/SignWithNitroKey.tsx b/src/pages/SignWithNitroKey.tsx index 740090b..376706d 100644 --- a/src/pages/SignWithNitroKey.tsx +++ b/src/pages/SignWithNitroKey.tsx @@ -3,22 +3,15 @@ import { useLocation, useNavigate } from "react-router-dom"; import { enqueueSnackbar } from "notistack"; import canonicalStringify from "canonical-json"; -import { - Select, - MenuItem, - Box, - Typography, -} from "@mui/material"; -import LoadingButton from '@mui/lab/LoadingButton'; +import { Select, MenuItem, Box, Typography } from "@mui/material"; +import LoadingButton from "@mui/lab/LoadingButton"; import { utf8ToHex } from "@walletconnect/encoding"; import { useWalletConnectContext } from "../context/WalletConnectContext"; import { ENABLE_KYC, HASHED_SUBSCRIBER_ID_KEY } from "../constants"; const SignWithNitroKey = () => { - - const { session, signClient, isSessionLoading } = - useWalletConnectContext(); + const { session, signClient, isSessionLoading } = useWalletConnectContext(); const navigate = useNavigate(); const location = useLocation(); @@ -42,14 +35,17 @@ const SignWithNitroKey = () => { const [isLoading, setIsLoading] = useState(false); - const subscriberIdHash = useMemo(()=>{ + const subscriberIdHash = useMemo(() => { return localStorage.getItem(HASHED_SUBSCRIBER_ID_KEY); }, []); useEffect(() => { if (!subscriberIdHash) { setIsLoading(false); - enqueueSnackbar("Subscriber ID not found. Please verify your email and try again", { variant: "error" }); + enqueueSnackbar( + "Subscriber ID not found. Please verify your email and try again", + { variant: "error" }, + ); } }, [subscriberIdHash]); @@ -65,7 +61,9 @@ const SignWithNitroKey = () => { try { setIsLoading(true); - enqueueSnackbar("View and sign the message from your Laconic Wallet", { variant: "info" }); + enqueueSnackbar("View and sign the message from your Laconic Wallet", { + variant: "info", + }); const jsonMessage = canonicalStringify(message); const hexMsg = utf8ToHex(jsonMessage, true); @@ -150,15 +148,19 @@ const SignWithNitroKey = () => { ))} - {(Boolean(ethAddress) && Boolean(cosmosAddress)) && ( -
{canonicalStringify(message, null, 2)} 
-
)} + {Boolean(ethAddress) && Boolean(cosmosAddress) && ( + +
+                {canonicalStringify(message, null, 2)}{" "}
+              
+
+ )}